/ cloudformation-templates / node_modules / aws-cdk / node_modules / es5-ext / lib / Object / map-keys.js
map-keys.js
1 'use strict'; 2 3 var forEach = require('./for-each'); 4 5 module.exports = function (obj, cb) { 6 var o = {}, thisArg = arguments[2]; 7 forEach(obj, function (value, key) { 8 o[cb.call(thisArg, key, value, this)] = value; 9 }, obj); 10 return o; 11 };