From a525c2ec5db9decd645942cde79a8c3536570ad7 Mon Sep 17 00:00:00 2001 From: Paul Miller Date: Sat, 5 Dec 2015 21:48:33 +0200 Subject: [PATCH] Don't depend on array-slice. I suggest we drop IE<9. Users who want this could fall back to older `arr-diff`. --- index.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/index.js b/index.js index f543f5a..bc7200d 100644 --- a/index.js +++ b/index.js @@ -8,7 +8,7 @@ 'use strict'; var flatten = require('arr-flatten'); -var slice = require('array-slice'); +var slice = [].slice; /** * Return the difference between the first array and @@ -40,7 +40,7 @@ function diff(arr, arrays) { } if (argsLen > 2) { - arrays = flatten(slice(arguments, 1)); + arrays = flatten(slice.call(arguments, 1)); } while (++i < len) {