Sha256: 591f9c91050dbeaa04b1e1f831a2a80c6735a6ade1fbb3ef3200f30347c627a6

Contents?: true

Size: 280 Bytes

Versions: 76

Compression:

Stored size: 280 Bytes

Contents

module.exports = function (xs, f) {
    if (xs.map) return xs.map(f);
    var res = [];
    for (var i = 0; i < xs.length; i++) {
        var x = xs[i];
        if (hasOwn.call(xs, i)) res.push(f(x, i, xs));
    }
    return res;
};

var hasOwn = Object.prototype.hasOwnProperty;

Version data entries

76 entries across 76 versions & 4 rubygems

Version Path
trusty-festivity-extension-2.6.3 node_modules/bower/node_modules/shell-quote/node_modules/array-map/index.js
trusty-festivity-extension-2.6.2 node_modules/bower/node_modules/shell-quote/node_modules/array-map/index.js
trusty-festivity-extension-2.6.1 node_modules/bower/node_modules/shell-quote/node_modules/array-map/index.js
trusty-festivity-extension-2.6 node_modules/bower/node_modules/shell-quote/node_modules/array-map/index.js
trusty-festivity-extension-2.5.19 node_modules/bower/node_modules/shell-quote/node_modules/array-map/index.js
trusty-festivity-extension-2.5.18 node_modules/bower/node_modules/shell-quote/node_modules/array-map/index.js
trusty-festivity-extension-2.5.17 node_modules/bower/node_modules/shell-quote/node_modules/array-map/index.js
trusty-festivity-extension-2.5.16 node_modules/bower/node_modules/shell-quote/node_modules/array-map/index.js
trusty-festivity-extension-2.5.15 node_modules/bower/node_modules/shell-quote/node_modules/array-map/index.js
trusty-festivity-extension-2.5.14 node_modules/bower/node_modules/shell-quote/node_modules/array-map/index.js
trusty-festivity-extension-2.5.13 node_modules/bower/node_modules/shell-quote/node_modules/array-map/index.js
trusty-festivity-extension-2.5.12 node_modules/bower/node_modules/shell-quote/node_modules/array-map/index.js
trusty-festivity-extension-2.5.11 node_modules/bower/node_modules/shell-quote/node_modules/array-map/index.js
trusty-festivity-extension-2.5.10 node_modules/bower/node_modules/shell-quote/node_modules/array-map/index.js
trusty-festivity-extension-2.5.9 node_modules/bower/node_modules/shell-quote/node_modules/array-map/index.js
trusty-festivity-extension-2.5.8 node_modules/bower/node_modules/shell-quote/node_modules/array-map/index.js
trusty-festivity-extension-2.5.7 node_modules/bower/node_modules/shell-quote/node_modules/array-map/index.js
minimum_viable_product-0.0.11 test/dummy/node_modules/array-map/index.js
brwy_rails-0.0.6 test/dummy/node_modules/array-map/index.js
brwy_rails-0.0.5 test/dummy/node_modules/array-map/index.js