Takaro - v0.4.11
    Preparing search index...

    Function filter

    • Iterates over elements of collection, returning an array of all elements predicate returns truthy for. The predicate is invoked with three arguments: (value, index|key, collection).

      Parameters

      • collection: string | null | undefined

        The collection to iterate over.

      • Optionalpredicate: StringIterator<boolean>

        The function invoked per iteration.

      Returns string[]

      Returns the new filtered array.

    • Type Parameters

      • T
      • S

      Parameters

      • collection: List<T> | null | undefined
      • predicate: ListIteratorTypeGuard<T, S>

      Returns S[]

      _.filter

    • Type Parameters

      • T

      Parameters

      • collection: List<T> | null | undefined
      • Optionalpredicate: ListIterateeCustom<T, boolean>

      Returns T[]

      _.filter

    • Type Parameters

      • T extends object
      • S

      Parameters

      • collection: T | null | undefined
      • predicate: ObjectIteratorTypeGuard<T, S>

      Returns S[]

      _.filter

    • Type Parameters

      • T extends object

      Parameters

      • collection: T | null | undefined
      • Optionalpredicate: ObjectIterateeCustom<T, boolean>

      Returns T[keyof T][]

      _.filter