npm.io
1.0.0 • Published 10 years ago

@f/over

Licence
MIT
Version
1.0.0
Deps
2
Vulns
0
Weekly
0

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