Skip to content

A library of JavaScript functions that take an iterable and mimic the functionality of many Array methods

License

Notifications You must be signed in to change notification settings

mvolkmann/star-it

Repository files navigation

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.

About

A library of JavaScript functions that take an iterable and mimic the functionality of many Array methods

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages