1.0.0 • Published 8 years ago

@f/over v1.0.0

Weekly downloads
-
License
MIT
Repository
github
Last release
8 years ago

over

Build status Git tag NPM version Code style

Map a list of functions over a value

Installation

$ npm install @f/over

Usage

var over = require('@f/over')

over(4, [isEven, isOdd]) // -> [true, false]

API

over(value, fns)

  • value - The value you want to pass to each function in fns
  • fns - An array of functions you want to call with value as their first argument.

Returns: An array of the return value of each fn(value).

License

MIT