summaryrefslogtreecommitdiff
path: root/lib/internal/slice.js
diff options
context:
space:
mode:
Diffstat (limited to 'lib/internal/slice.js')
-rw-r--r--lib/internal/slice.js9
1 files changed, 0 insertions, 9 deletions
diff --git a/lib/internal/slice.js b/lib/internal/slice.js
deleted file mode 100644
index cd2e5b3..0000000
--- a/lib/internal/slice.js
+++ /dev/null
@@ -1,9 +0,0 @@
-export default function slice(arrayLike, start) {
- start = start|0;
- var newLen = Math.max(arrayLike.length - start, 0);
- var newArr = Array(newLen);
- for(var idx = 0; idx < newLen; idx++) {
- newArr[idx] = arrayLike[start + idx];
- }
- return newArr;
-}