node_modules/es5-ext/object/map.js

Maintainability

78.16

Lines of code

15

Created with Raphaël 2.1.002550751002015-1-52014-12-42014-12-3

2015-5-18
Maintainability: 78.16

Created with Raphaël 2.1.0051015202015-1-52014-12-42014-12-3

2015-5-18
Lines of Code: 15

Difficulty

6.83

Estimated Errors

0.10

Function weight

By Complexity

Created with Raphaël 2.1.0module.exports1

By SLOC

Created with Raphaël 2.1.0module.exports8
1
'use strict';
Column: 1 "Use the function form of "use strict"."
2
 
3
var callable = require('./valid-callable')
Column: 42 "Bad line breaking before ','."
Column: 16 "'require' is not defined."
4
  , forEach  = require('./for-each')
Column: 3 "Comma warnings can be turned off with 'laxcomma'."
Column: 36 "Bad line breaking before ','."
Column: 16 "'require' is not defined."
5
 
6
  , call = Function.prototype.call;
7
 
8
module.exports = function (obj, cb/*, thisArg*/) {
Column: 1 "'module' is not defined."
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
};