aboutsummaryrefslogtreecommitdiff
path: root/node_modules/@babel/runtime/helpers/builtin/arrayWithoutHoles.js
diff options
context:
space:
mode:
Diffstat (limited to 'node_modules/@babel/runtime/helpers/builtin/arrayWithoutHoles.js')
-rw-r--r--node_modules/@babel/runtime/helpers/builtin/arrayWithoutHoles.js11
1 files changed, 11 insertions, 0 deletions
diff --git a/node_modules/@babel/runtime/helpers/builtin/arrayWithoutHoles.js b/node_modules/@babel/runtime/helpers/builtin/arrayWithoutHoles.js
new file mode 100644
index 00000000..3234017e
--- /dev/null
+++ b/node_modules/@babel/runtime/helpers/builtin/arrayWithoutHoles.js
@@ -0,0 +1,11 @@
+function _arrayWithoutHoles(arr) {
+ if (Array.isArray(arr)) {
+ for (var i = 0, arr2 = new Array(arr.length); i < arr.length; i++) {
+ arr2[i] = arr[i];
+ }
+
+ return arr2;
+ }
+}
+
+module.exports = _arrayWithoutHoles; \ No newline at end of file