@f/map-obj

1.2.2 • Public • Published

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

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 1.2.2
    113,229
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 1.2.2
    113,229
  • 1.2.1
    1
  • 1.2.0
    1

Package Sidebar

Install

npm i @f/map-obj

Weekly Downloads

14,936

Version

1.2.2

License

MIT

Last publish

Collaborators

  • f