node package manager
Easy collaboration. Discover, share, and reuse code in your team. Create a free org »

map-keys

map-keys

Map object keys returning a new object

Example

var map = require("map-keys");
map({ foo: 2 }, function(val, key, obj) {
  return key + "bar";
});
// -> { foobar: 2 } 

Installation

npm install map-keys