_set-collection-of.js 350 B

123456789101112
  1. 'use strict';
  2. // https://tc39.github.io/proposal-setmap-offrom/
  3. var $export = require('./_export');
  4. module.exports = function (COLLECTION) {
  5. $export($export.S, COLLECTION, { of: function of() {
  6. var length = arguments.length;
  7. var A = new Array(length);
  8. while (length--) A[length] = arguments[length];
  9. return new this(A);
  10. } });
  11. };