@f/obj-functor
v1.0.0
Published
Object functor.
Downloads
4
Readme
obj-functor
Object functor. Implements map on objects, using @f/map-obj.
Installation
$ npm install @f/obj-functorUsage
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
