• 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).

    Type Parameters

    • T


    • array: undefined | null | List<T>

      The array to query.

    • Optional predicate: ListIteratee<T>

      The function invoked per iteration.

    Returns T[]

    Returns the slice of array.

Generated using TypeDoc