- Preparing search index...
- The search index is not available
atomic-fns
- takeWhile<T>(iterable: Iterable<T>, predicate: Predicate<T, any>): Generator<T, void, unknown>
-
Parameters
-
iterable: Iterable<T>
-
predicate: Predicate<T, any>
Returns Generator<T, void, unknown>
Returns a generator that takes elements from the iterable as long as the predicate is
true
.Returns
Elements