Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

map-values

parshap469.3kPublic Domain1.0.1TypeScript support: definitely-typed

Map object values returning a new object

map, values, object

readme

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