Back to Explore

es-shims/Array.prototype.flat

GitHub
1 watchersOpen source

Last release: 12/15/2024

This is an ES2019 spec-compliant `Array.prototype.flat` shim or polyfill for flattening nested arrays, implemented to work in environments as old as ES3. It provides a main export that takes the target array as the first argument and can also supply a `shim()` that replaces or matches `Array.prototype.flat` behavior when needed.

Project status

  • Maintenance status: Evidence is mixed. The most recent upstream push timestamp is 2025-12-30, but the last documented published update shown is v1.3.3 on 2024-12-15, so it appears to be maintained, though updates are not frequent.
  • Update cadence: Published updates are sparse, with long gaps between v1.3.3 (2024-12-15), v1.3.2 (2023-09-06), and v1.3.1 (2022-11-03), suggesting a maintenance cadence rather than active feature development.

AI summary generated Today

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

Recent updates

  • v1.3.3

    12/15/2024

    Release v1.3.3 contains CI workflow adjustments for Node version ranges, plus dependency and implementation-library bumps. There are no release notes provided by the publisher, so the changelog and code diff are the only signals for what actually changed.

  • v1.3.2

    9/6/2023

    Release v1.3.2 does not include any publisher-provided release notes. The code changes are limited to dependency updates and switching the internal `es-abstract` implementation year from 2022 to 2023 for core helper functions used by `flat`.

  • v1.3.1

    11/3/2022

    This release is version v1.3.1, published on 2022-11-03. No release notes were provided by the publisher, so the specific code changes, potential API impact, and fixes are not documented here.