Plato on Github
Report Home
node_modules/es5-ext/object/map.js
Maintainability
78.16
Lines of code
15
Difficulty
6.83
Estimated Errors
0.10
Function weight
By Complexity
By SLOC
'use strict'; var callable = require('./valid-callable') , forEach = require('./for-each') , call = Function.prototype.call; module.exports = function (obj, cb/*, thisArg*/) { var o = {}, thisArg = arguments[2]; callable(cb); forEach(obj, function (value, key, obj, index) { o[key] = call.call(cb, thisArg, value, key, obj, index); }); return o; };