Link Search Menu Expand Document

Table of contents


all (function)

Similar to R.all. Returns true if all the elements of the list match the predicate, false otherwise. Does not dispatch to the all method of the second argument if present. Does not act as a transducer if a transformer is given in the list position.

Signature

export function all<T>(predicate: Predicate<T>): Predicate<Array<T>>;
export function all<T>(predicate: Predicate<T>, as: Array<T>): boolean; { ... }

Added in v0.1.6