star-it
v1.0.2
Published
A library of JavaScript functions that take an iterable and mimic the functionality of many Array methods
Downloads
5
Maintainers
Readme
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.