massive update, probably broken
[dotfiles/.git] / .config / coc / extensions / node_modules / coc-prettier / node_modules / core-js / internals / collection-of.js
index e68a10743b701d06c6d4ba5d6740ed03b832d8c3..b4b10541ba25e768167a2229b57f4d4c34dcb070 100644 (file)
@@ -1,8 +1,7 @@
 'use strict';
+var arraySlice = require('../internals/array-slice');
+
 // https://tc39.github.io/proposal-setmap-offrom/
 module.exports = function of() {
-  var length = arguments.length;
-  var A = new Array(length);
-  while (length--) A[length] = arguments[length];
-  return new this(A);
+  return new this(arraySlice(arguments));
 };