massive update, probably broken
[dotfiles/.git] / .config / coc / extensions / node_modules / coc-prettier / node_modules / core-js / internals / array-from-constructor-and-list.js
diff --git a/.config/coc/extensions/node_modules/coc-prettier/node_modules/core-js/internals/array-from-constructor-and-list.js b/.config/coc/extensions/node_modules/coc-prettier/node_modules/core-js/internals/array-from-constructor-and-list.js
new file mode 100644 (file)
index 0000000..2680bbd
--- /dev/null
@@ -0,0 +1,7 @@
+module.exports = function (Constructor, list) {
+  var index = 0;
+  var length = list.length;
+  var result = new Constructor(length);
+  while (length > index) result[index] = list[index++];
+  return result;
+};