@newdash/newdash
Version:
javascript/typescript utility library
13 lines (12 loc) • 432 B
TypeScript
export default arrayEvery;
/**
* A specialized version of `every` for arrays without support for
* iteratee shorthands.
*
* @private
* @param {Array} [array] The array to iterate over.
* @param {Function} predicate The function invoked per iteration.
* @returns {boolean} Returns `true` if all elements pass the predicate check,
* else `false`.
*/
declare function arrayEvery(array?: any[], predicate: Function): boolean;