1.0.0 • Published 8 years ago
@f/obj-functor v1.0.0
obj-functor
Object functor. Implements map on objects, using @f/map-obj.
Installation
$ npm install @f/obj-functor
Usage
var objFunctor = require('@f/obj-functor')
objFunctor({a: 1}).map(add) // => {a: 2}
function add (v) {
return v + 1
}
API
objFunctor(obj)
obj
- plain object
Returns: returns a plain object with map on its prototype
License
MIT
1.0.0
8 years ago