"Fossies" - the Fresh Open Source Software Archive

Member "Atom/resources/app/apm/node_modules/es5-ext/object/map.js" (8 Feb 2018, 395 Bytes) of package /windows/misc/atom-windows.zip:


As a special service "Fossies" has tried to format the requested source page into HTML format using (guessed) Javascript source code syntax highlighting (style: standard) with prefixed line numbers and code folding option. Alternatively you can here view or download the uninterpreted source code file.

    1 "use strict";
    2 
    3 var callable = require("./valid-callable")
    4   , forEach  = require("./for-each")
    5   , call     = Function.prototype.call;
    6 
    7 module.exports = function (obj, cb /*, thisArg*/) {
    8     var result = {}, thisArg = arguments[2];
    9     callable(cb);
   10     forEach(obj, function (value, key, targetObj, index) {
   11         result[key] = call.call(cb, thisArg, value, key, targetObj, index);
   12     });
   13     return result;
   14 };