Skip to content

Commit a525c2e

Browse files
committed
Don't depend on array-slice.
I suggest we drop IE<9. Users who want this could fall back to older `arr-diff`.
1 parent a749b8f commit a525c2e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

index.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
'use strict';
99

1010
var flatten = require('arr-flatten');
11-
var slice = require('array-slice');
11+
var slice = [].slice;
1212

1313
/**
1414
* Return the difference between the first array and
@@ -40,7 +40,7 @@ function diff(arr, arrays) {
4040
}
4141

4242
if (argsLen > 2) {
43-
arrays = flatten(slice(arguments, 1));
43+
arrays = flatten(slice.call(arguments, 1));
4444
}
4545

4646
while (++i < len) {

0 commit comments

Comments
 (0)