array.prototype.flat

v1.3.2
An ES2019 spec-compliant `Array.prototype.flat` shim/polyfill/replacement that works as far down as ES3.
Array.prototype.flatten Array.prototype.flat flatten flat array ESnext shim polyfill flatMap and 3 more...

prepack

npmignore --auto --commentLines=autogenerated

prepublish

not-in-publish || npm run prepublishOnly

prepublishOnly

safe-publish-latest

pretest

npm run --silent lint && evalmd README.md

test

npm run tests-only

posttest

aud --production

tests-only

nyc tape 'test/**/*.js'

lint

eslint --ext=js,mjs .

postlint

es-shim-api --bound

version

auto-changelog && git add CHANGELOG.md

postversion

auto-changelog && git add CHANGELOG.md && git commit --no-edit --amend && git tag -f "v$(node -e "console.log(require('./package.json').version)")"
npm i array.prototype.flat

Metadata

  • MIT
  • >= 0.4
  • Jordan Harband
  • released 9/6/2023

Downloads

Maintainers