UNPKG

core-js

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