COLLECTED BY
Organization:
Internet Archive
Focused crawls are collections of frequently-updated webcrawl data from narrow (as opposed to broad or wide) web crawls, often focused on a single domain or subdomain.
The Wayback Machine - https://web.archive.org/web/20201220221852/https://github.com/lodash/lodash/blob/master/overSome.js
Permalink
Cannot retrieve contributors at this time
31 lines (29 sloc)
640 Bytes
import some from './some.js'
/**
* Creates a function that checks if **any** of the `predicates` return
* truthy when invoked with the arguments it receives.
*
* @since 4.0.0
* @category Util
* @param {Function[] } [predicates=[identity]]
* The predicates to check.
* @returns {Function } Returns the new function.
* @example
*
* const func = overSome([Boolean, isFinite])
*
* func('1')
* // => true
*
* func(null)
* // => true
*
* func(NaN)
* // => false
*/
function overSome ( iteratees ) {
return function ( ...args ) {
return some ( iteratees , ( iteratee ) => iteratee . apply ( this , args ) )
}
}
export default overSome
You can’t perform that action at this time.
You signed in with another tab or window. Reload to refresh your session.
You signed out in another tab or window. Reload to refresh your session.