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

    Type Parameters

    • T

    Parameters

    • array: undefined | null | List<T>

      The array to query.

    • Optionalpredicate: ListIteratee<T>

      The function invoked per iteration.

    Returns T[]

    Returns the slice of array.