tamda
Version:
Practical functional programming library for TypeScript
20 lines (19 loc) • 745 B
TypeScript
import { Predicate } from '../operators';
/**
* Determines whether or not all members of an `array` match a `predicate`.
* @param array Array to look in.
* @param predicate Function to determine a match.
*/
export declare function all<T>(array: T[], predicate: Predicate<T>): boolean;
/**
* Returns a function that
* determines whether or not all members of an `array` match a `predicate`.
* @param predicate Function to determine a match.
*/
export declare function all<T>(predicate: Predicate<T>): typeof deferred;
/**
* Determines whether or not all members of an `array` match a previously specified `predicate`.
* @param array Array to look in.
*/
declare function deferred<T>(array: T[]): boolean;
export {};