Git Product home page Git Product logo

farr's Introduction

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

farr's People

Contributors

anwarhahjjeffersongeorge avatar dependabot[bot] avatar

Stargazers

Roman avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.