Back to Explore

Raynos/for-each

GitHub
4 watchersOpen source

Last release:

“for-each” is a small JavaScript utility that works like Array.prototype.forEach but can iterate over objects, passing (value, key, object) to the callback. It can also be used as a polyfill or shim for arrays, making it useful when you want consistent forEach-style iteration across arrays and objects.

Project status

  • Maintenance status: The repo shows ongoing work up to v0.3.5 on 2025-02-11, but there have been no listed updates since then (as of 2026-09-10), so it is quiet/dormant since early 2025 rather than actively maintained.
  • Update cadence: Updates were relatively frequent early on (multiple versions in 2012 to 2014, then a long gap until 2018), and then a smaller cadence in Jan to Feb 2025 (v0.3.4, v0.3.5). After Feb 2025, the source appears to have stalled.

AI summary generated

AI-generated from public sources. May be inaccurate. Report

Recent updates

  • v0.3.5

    v0.3.5 adds TypeScript typings for the CommonJS `forEach` export and introduces TypeScript into the project’s lint workflow (tsc plus arethetypeswrong). The runtime iteration logic in `index.js` is mostly refactored for clarity, with an internal `isArray` helper replacing the previous inline `[object Array]` check.

    Features
  • v0.3.4

    v0.3.4 primarily updates project tooling and repository automation (CI workflows, lint/test scripts, release metadata), with only a small runtime-relevant change: a dependency bump. No changes to the actual for-each implementation or exported API surface are present in the provided diff.

  • v0.3.3

    Release v0.3.3 was published on 2018-06-02, but no release notes or change descriptions were provided by the publisher. As a result, there is no actionable information available here to identify new features, breaking changes, bug fixes, or security updates.

  • v0.3.2

    Version v0.3.2 makes a small internal change to how the forEach iterator is validated, and adds a new runtime dependency. No release notes were provided, so the functional impact of the change is not documented.

  • v0.3.1

    The release notes for v0.3.1 are missing or not provided. The code diff shows the only change is a version bump in package.json from 0.3.0 to 0.3.1.

  • v0.3.0

    v0.3.0 refactors the implementation of the exported `forEach` function and updates project metadata. The release notes section is empty, so the code changes below are not explained by the publisher.

    Breaking
  • v0.2.0

    v0.2.0 updates the core forEach implementation and test tooling. The main behavioral changes are stricter iterator validation and different iteration semantics for arrays, strings, and potentially sparse arrays. Release notes were not provided, so the full set of behavior changes cannot be confirmed as documented.

  • v0.1.0

    Release v0.1.0 was published on 2012-09-29, but no release notes were provided by the publisher. As a result, no specific new features, bug fixes, breaking changes, or security updates can be confirmed from the release notes alone.