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