Skip to content

Commit af952d8

Browse files
committed
Merge pull request #1 from paulmillr/patch-1
Don't depend on array-slice.
2 parents a749b8f + a525c2e commit af952d8

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)