mirror of
https://github.com/whoisclebs/lodash.git
synced 2026-02-10 02:47:50 +00:00
Fixin some and every imports.
This commit is contained in:
@@ -1,5 +1,5 @@
|
|||||||
import SetCache from './SetCache.js'
|
import SetCache from './SetCache.js'
|
||||||
import arraySome from './arraySome.js'
|
import some from '../some.js'
|
||||||
import cacheHas from './cacheHas.js'
|
import cacheHas from './cacheHas.js'
|
||||||
|
|
||||||
/** Used to compose bitmasks for value comparisons. */
|
/** 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).
|
// Recursively compare arrays (susceptible to call stack limits).
|
||||||
if (seen) {
|
if (seen) {
|
||||||
if (!arraySome(other, (othValue, othIndex) => {
|
if (!some(other, (othValue, othIndex) => {
|
||||||
if (!cacheHas(seen, othIndex) &&
|
if (!cacheHas(seen, othIndex) &&
|
||||||
(arrValue === othValue || equalFunc(arrValue, othValue, bitmask, customizer, stack))) {
|
(arrValue === othValue || equalFunc(arrValue, othValue, bitmask, customizer, stack))) {
|
||||||
return seen.push(othIndex)
|
return seen.push(othIndex)
|
||||||
|
|||||||
@@ -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
|
* Creates a function that checks if **all** of the `predicates` return
|
||||||
@@ -24,7 +24,7 @@ import arrayEvery from './.internal/arrayEvery.js'
|
|||||||
*/
|
*/
|
||||||
function overEvery(iteratees) {
|
function overEvery(iteratees) {
|
||||||
return function(...args) {
|
return function(...args) {
|
||||||
return arrayEvery(iteratees, (iteratee) => iteratee.apply(this, args))
|
return every(iteratees, (iteratee) => iteratee.apply(this, args))
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -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
|
* Creates a function that checks if **any** of the `predicates` return
|
||||||
@@ -24,7 +24,7 @@ import arraySome from './.internal/arraySome.js'
|
|||||||
*/
|
*/
|
||||||
function overSome(iteratees) {
|
function overSome(iteratees) {
|
||||||
return function(...args) {
|
return function(...args) {
|
||||||
return arraySome(iteratees, (iteratee) => iteratee.apply(this, args))
|
return some(iteratees, (iteratee) => iteratee.apply(this, args))
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user