Lodash.takeWhile

Creates a slice of array with elements taken from the beginning. Elements are taken until predicate returns falsey. The predicate is invoked with three arguments: (value, index, array).

struct Lodash
nothrow @trusted @safe ref
takeWhile
(
T = Any
)
(
auto ref T predicate = T.init
)

Return Value

Type: auto ref

- Lodash chained on (Array): the slice of array.

Meta