flo-map
v1.0.1
Published
Flo map.
Downloads
3
Readme
flo-map
Flo map.
Installation
$ npm install flo-map
Usage
import flo-map from 'flo-map'
let wacky = flo-map(wackify)
wacky(function * () {
yield 'happy' // => 'wacky happy'
yield ['dog', 'cat'] // => ['wacky dog', 'wacky cat']
})
function wackify (str) {
return 'wacky ' + str
}
API
flo-map(..fns)
fns
- functions to perform left to right composition over - composition is past "non-floables"
Returns: a unary function that takes an action - action can be "floable" or action to be processed by composition
License
MIT