diff --git a/modules/without.js b/modules/without.js index 6392c12bc..7dcd332d5 100644 --- a/modules/without.js +++ b/modules/without.js @@ -1,5 +1,6 @@ import contains from './contains' +import reduce from './reduce' export default function without(itemsToOmit, collection) { - return collection.reduce((accum, item) => !contains(item, itemsToOmit) ? accum.concat(item) : accum, []) + return reduce((accum, item) => !contains(item, itemsToOmit) ? accum.concat(item) : accum, [], collection) }