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/20201220221843/https://github.com/lodash/lodash/blob/master/overEvery.js
Permalink
Cannot retrieve contributors at this time
31 lines (29 sloc)
647 Bytes
import every from './every.js'
/**
* Creates a function that checks if **all** 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 = overEvery([Boolean, isFinite])
*
* func('1')
* // => true
*
* func(null)
* // => false
*
* func(NaN)
* // => false
*/
function overEvery ( iteratees ) {
return function ( ...args ) {
return every ( iteratees , ( iteratee ) => iteratee . apply ( this , args ) )
}
}
export default overEvery
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.