@f/map-obj

Map for objects.

Stats

StarsIssuesVersionUpdatedCreatedSize
@f/map-obj
001.2.26 years ago6 years agoMinified + gzip package size for @f/map-obj in KB

Readme

map-obj

Build status Git tag NPM version Code style

Map for objects.

Installation

$ npm install @f/map-obj

Usage

var mapObj = require('@f/map-obj')

mapObj(addOne, {a: 1, b: 2}) // => {a: 2, b: 3}

function addOne (v) {
  return v + 1
}

API

mapObj(fn, obj)

  • fn - map function
  • obj - obj to map over

Returns: mapped object

License

MIT

If you find any bugs or have a feature request, please open an issue on github!

The npm package download data comes from npm's download counts api and package details come from npms.io.