diff options
Diffstat (limited to 'node_modules/core-js/modules/_set-collection-of.js')
| -rw-r--r-- | node_modules/core-js/modules/_set-collection-of.js | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/node_modules/core-js/modules/_set-collection-of.js b/node_modules/core-js/modules/_set-collection-of.js new file mode 100644 index 00000000..f559af3f --- /dev/null +++ b/node_modules/core-js/modules/_set-collection-of.js @@ -0,0 +1,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 = new Array(length); + while (length--) A[length] = arguments[length]; + return new this(A); + } }); +}; |
