map-values
Map object values returning a new object
Last updated 7 years ago by parshap .
Public Domain · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install map-values 
SYNC missed versions from official npm registry.

map-values

Map object values returning a new object.

Example

var map = require("map-values");
map({ foo: 2 }, function(val, key, obj) {
  return val * 2;
});
// -> { foo: 4 }

Installation

npm install map-values

Current Tags

  • 1.0.1                                ...           latest (7 years ago)

2 Versions

  • 1.0.1                                ...           7 years ago
  • 1.0.0                                ...           7 years ago
Maintainers (1)
Downloads
Today 23
This Week 62
This Month 479
Last Day 24
Last Week 120
Last Month 501
Dependencies (0)
None
Dev Dependencies (1)

Copyright 2014 - 2016 © taobao.org |