- all<TSource>(src: Iterable<TSource>, condition: ((item: TSource, index: number) => boolean)): boolean
-
Parameters
-
src: Iterable<TSource>
-
condition: ((item: TSource, index: number) => boolean)
-
- (item: TSource, index: number): boolean
-
Parameters
-
item: TSource
-
index: number
Returns boolean
Returns boolean
Determines whether all elements of a sequence satisfy a condition.
See
all for fluent syntax.
Example
Returns
true if every element of the source sequence passes the test in the specified predicate, or if the sequence is empty; otherwise, false.