]> git.r.bdr.sh - rbdr/dotfiles/blob - atom/packages/vim-mode/node_modules/grim/node_modules/emissary/node_modules/es6-weak-map/node_modules/es5-ext/object/map.js
6b39d3c94b7421f0827f83049461bc2a00f22e10
[rbdr/dotfiles] / atom / packages / vim-mode / node_modules / grim / node_modules / emissary / node_modules / es6-weak-map / node_modules / es5-ext / object / map.js
1 'use strict';
2
3 var callable = require('./valid-callable')
4 , forEach = require('./for-each')
5
6 , call = Function.prototype.call;
7
8 module.exports = function (obj, cb/*, thisArg*/) {
9 var o = {}, thisArg = arguments[2];
10 callable(cb);
11 forEach(obj, function (value, key, obj, index) {
12 o[key] = call.call(cb, thisArg, value, key, obj, index);
13 });
14 return o;
15 };