Sha256: 1c146492c68b73c4cfa257e5332bc9f2dd145f7856a2144aa4601fec0d87fd69

Contents?: true

Size: 612 Bytes

Versions: 82

Compression:

Stored size: 612 Bytes

Contents

'use strict';
var $export = require('./_export');
var createProperty = require('./_create-property');

// WebKit Array.of isn't generic
$export($export.S + $export.F * require('./_fails')(function () {
  function F() { /* empty */ }
  return !(Array.of.call(F) instanceof F);
}), 'Array', {
  // 22.1.2.3 Array.of( ...items)
  of: function of(/* ...args */) {
    var index = 0;
    var aLen = arguments.length;
    var result = new (typeof this == 'function' ? this : Array)(aLen);
    while (aLen > index) createProperty(result, index, arguments[index++]);
    result.length = aLen;
    return result;
  }
});

Version data entries

82 entries across 38 versions & 8 rubygems

Version Path
immosquare-cleaner-0.1.60 node_modules/core-js/library/modules/es6.array.of.js
immosquare-cleaner-0.1.60 node_modules/core-js/modules/es6.array.of.js
immosquare-cleaner-0.1.59 node_modules/core-js/library/modules/es6.array.of.js
immosquare-cleaner-0.1.59 node_modules/core-js/modules/es6.array.of.js
immosquare-cleaner-0.1.58 node_modules/core-js/library/modules/es6.array.of.js
immosquare-cleaner-0.1.58 node_modules/core-js/modules/es6.array.of.js
immosquare-cleaner-0.1.57 node_modules/core-js/modules/es6.array.of.js
immosquare-cleaner-0.1.57 node_modules/core-js/library/modules/es6.array.of.js
immosquare-cleaner-0.1.56 node_modules/core-js/library/modules/es6.array.of.js
immosquare-cleaner-0.1.56 node_modules/core-js/modules/es6.array.of.js
immosquare-cleaner-0.1.55 node_modules/core-js/library/modules/es6.array.of.js
immosquare-cleaner-0.1.55 node_modules/core-js/modules/es6.array.of.js
immosquare-cleaner-0.1.54 node_modules/core-js/library/modules/es6.array.of.js
immosquare-cleaner-0.1.54 node_modules/core-js/modules/es6.array.of.js
immosquare-cleaner-0.1.53 node_modules/core-js/modules/es6.array.of.js
immosquare-cleaner-0.1.53 node_modules/core-js/library/modules/es6.array.of.js
immosquare-cleaner-0.1.52 node_modules/core-js/library/modules/es6.array.of.js
immosquare-cleaner-0.1.52 node_modules/core-js/modules/es6.array.of.js
immosquare-cleaner-0.1.51 node_modules/core-js/library/modules/es6.array.of.js
immosquare-cleaner-0.1.51 node_modules/core-js/modules/es6.array.of.js