1.0.0 • Published 8 years ago
@f/over v1.0.0
over
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 infns
fns
- An array of functions you want to call withvalue
as their first argument.
Returns: An array of the return value of each fn(value)
.
License
MIT
1.0.0
8 years ago