1.2.2 • Published 4 years ago

farr v1.2.2

Weekly downloads
1
License
Unlicense
Repository
github
Last release
4 years ago

VersionBuild Status codecov

license JavaScript Style Guide


farr

Documentation

Please see Docs.

arrays of functions only

This module exports a single class Farr, that extends the native Array class.

Anytime an array-index-valued property of a Farr is set, the provided value gets filtered:

  • If the value is a function, it's left as-is.
  • If the value is not a function, it's replaced by a new anonymous function that produces the value when called.

This means thatFarr arrays only store function elements or empty slots.

Methods

Farr instances have various methods.

Terminal Methods

These are unary, asynchronous and non-chainable:

  • .all
  • .cascade
  • .periodic

Nonterminal Methods

These are variadic, synchronous and chainable:

  • .at
  • .after
  • .nCycles
  • .premap

Installation

Run npm install farr

Usage

Please see Tutorials link at the top of this page.

Testing

Run npm test

Dependents

This module is a parent class for another module farr-this. The farr-this module will auto-run the tests from this module, so changes made here should also work there.

Contributing Guidelines

  1. All tests must pass (see Dependents) and all new functionality must include tests.
  2. Code must adhere to JavaScript Standard Style.
  3. New code must include JSDoc documentation.
  4. Build must pass TravisCI.

Thanks.

License

Unlicense

Author

Anwar Hahj Jefferson-George

1.2.2

4 years ago

1.2.0

5 years ago

1.1.1

5 years ago

1.1.0

5 years ago

1.0.13

5 years ago

1.0.12

5 years ago

1.0.11

5 years ago

1.0.10

5 years ago

1.0.9

5 years ago

1.0.7

5 years ago

1.0.4

5 years ago