/node_modules/babel-polyfill/node_modules/core-js/library/modules/_set-collection-of.js

https://bitbucket.org/worklabschd/bingle_customer2 · JavaScript · 12 lines · 10 code · 1 blank · 1 comment · 1 complexity · 3480e04c685ccfd92d885f5c3d5e5e17 MD5 · raw file

  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. };