es-get-iterator

v1.1.3
Get an iterator for any JS language value. Works robustly across all environments, all versions.
iterator Symbol.iterator iterable collection next iteration

prepack

npmignore --auto --commentLines=autogenerated

prepublish

not-in-publish || npm run prepublishOnly

prepublishOnly

safe-publish-latest

lint

eslint --ext=js,mjs .

pretest

npm run lint

tests-only

nyc node test/${TEST_VARIANT-}

tests-esm

TEST_VARIANT=node.mjs npm run tests-only

tests-preload-es6-shim

TEST_VARIANT=es6-shim PRELOAD_GET_ITERATOR=true npm run tests-only

test

npm run tests-only && TEST_VARIANT=node npm run tests-only && npm run tests-esm && npm run tests-preload-es6-shim

posttest

aud --production

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 es-get-iterator

Metadata

  • MIT
  • Whatever
  • Jordan Harband
  • released 1/13/2023

Downloads

Maintainers