@f/obj-functor

1.0.0 • Public • Published

obj-functor

Build status Git tag NPM version Code style

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

Readme

Keywords

none

Package Sidebar

Install

npm i @f/obj-functor

Weekly Downloads

1

Version

1.0.0

License

MIT

Last publish

Collaborators

  • f