aboutsummaryrefslogtreecommitdiff
path: root/node_modules/core-js/modules/_set-collection-of.js
blob: dfb25800e764cf8c3c57f4c7accf8464484bd4e4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
'use strict';
// https://tc39.github.io/proposal-setmap-offrom/
var $export = require('./_export');

module.exports = function (COLLECTION) {
  $export($export.S, COLLECTION, { of: function of() {
    var length = arguments.length;
    var A = Array(length);
    while (length--) A[length] = arguments[length];
    return new this(A);
  } });
};