JSPM

object.map

0.1.0
  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 3182507
  • Score
    100M100P100Q191129F

Similar to map for arrays, this creates a new object by calling the callback on each property of the original object.

Package Exports

  • object.map

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (object.map) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

object.map NPM version

Similar to map for arrays, this creates a new object by calling the callback on each property of the original object.

Install

Install with npm

npm i object.map --save

Run tests

npm test

Usage

var mapValues = require('object.map');
var obj = {a: 'a', b: 'b'};

mapValues(obj, function(val, key, orig) {
  return val + val;
});
//=> {a: 'aa', b: 'bb'}

Author

Jon Schlinkert

License

Copyright (c) 2014 Jon Schlinkert, contributors.
Released under the MIT license


This file was generated by verb-cli on October 07, 2014.