From 4092747dde6447656b03fdbab28e0e935626b863 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Micha=C5=82=20Lipi=C5=84ski?= Date: Tue, 18 Apr 2017 09:44:50 +0200 Subject: [PATCH] Fixin `some` and `every` imports. --- .internal/equalArrays.js | 4 ++-- overEvery.js | 4 ++-- overSome.js | 4 ++-- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/.internal/equalArrays.js b/.internal/equalArrays.js index 3e649109d..3ef2b8e9e 100644 --- a/.internal/equalArrays.js +++ b/.internal/equalArrays.js @@ -1,5 +1,5 @@ import SetCache from './SetCache.js' -import arraySome from './arraySome.js' +import some from '../some.js' import cacheHas from './cacheHas.js' /** Used to compose bitmasks for value comparisons. */ @@ -59,7 +59,7 @@ function equalArrays(array, other, bitmask, customizer, equalFunc, stack) { } // Recursively compare arrays (susceptible to call stack limits). if (seen) { - if (!arraySome(other, (othValue, othIndex) => { + if (!some(other, (othValue, othIndex) => { if (!cacheHas(seen, othIndex) && (arrValue === othValue || equalFunc(arrValue, othValue, bitmask, customizer, stack))) { return seen.push(othIndex) diff --git a/overEvery.js b/overEvery.js index 28e81d00c..4f22a9956 100644 --- a/overEvery.js +++ b/overEvery.js @@ -1,4 +1,4 @@ -import arrayEvery from './.internal/arrayEvery.js' +import every from './every.js' /** * Creates a function that checks if **all** of the `predicates` return @@ -24,7 +24,7 @@ import arrayEvery from './.internal/arrayEvery.js' */ function overEvery(iteratees) { return function(...args) { - return arrayEvery(iteratees, (iteratee) => iteratee.apply(this, args)) + return every(iteratees, (iteratee) => iteratee.apply(this, args)) } } diff --git a/overSome.js b/overSome.js index d07e9a052..6b2c0dcbb 100644 --- a/overSome.js +++ b/overSome.js @@ -1,4 +1,4 @@ -import arraySome from './.internal/arraySome.js' +import some from './some.js' /** * Creates a function that checks if **any** of the `predicates` return @@ -24,7 +24,7 @@ import arraySome from './.internal/arraySome.js' */ function overSome(iteratees) { return function(...args) { - return arraySome(iteratees, (iteratee) => iteratee.apply(this, args)) + return some(iteratees, (iteratee) => iteratee.apply(this, args)) } }