- every<V>(it, f): boolean
Parameters
- it: Iterable<V> | V[]
- f: ((v: V) => boolean)
- (v): boolean
Returns boolean
Returns boolean
- every<V>(it, f): Promise<boolean>
Parameters
- it: AsyncIterable<V>
- f: ((v: V) => boolean | Promise<boolean>)
- (v): boolean | Promise<boolean>
Returns boolean | Promise<boolean>
Returns Promise<boolean>
Returns true if
f
returns true for every item in iterable.Streaming: If an infinite iterable is used, function will never return value.
Param: it
Param: f
Returns