star-it

1.0.2 • Public • Published

This is a library of JavaScript functions that take an iterable and mimic the functionality of many Array methods.

The name comes from "star" for the asterisk wildcard character, representing the many Array methods that are mimiced, and "it" for iterable.

Note that only the filter, map, skip, and take functions are safe to use with infinite sequences.

See star-it-spec.js for usage examples. To run the tests,

  • install Node.js
  • enter "npm install"
  • enter "npm test"

See IteratorsAndGenerators.pdf for an associated presentation.

Package Sidebar

Install

npm i star-it

Weekly Downloads

2

Version

1.0.2

License

MIT

Last publish

Collaborators

  • mvolkmann