Preparing search index...
The search index is not available
@adamburgess/linq
@adamburgess/linq
enumerable
takeWhile
Function takeWhile
takeWhile
<
T
>
(
input
:
Iterable
<
T
>
,
predicate
:
(
arg
:
T
)
=>
boolean
)
:
Iterable
<
T
>
Takes X elements from input while a predicate is true.
See
from(sequence).takeWhile
for examples.
Type Parameters
T
Parameters
input
:
Iterable
<
T
>
predicate
:
(
arg
:
T
)
=>
boolean
Returns
Iterable
<
T
>
Settings
Member Visibility
Protected
Inherited
External
Theme
OS
Light
Dark
@adamburgess/linq
Loading...
Takes X elements from input while a predicate is true.
See from(sequence).takeWhile for examples.