Takaro - v0.4.11
    Preparing search index...

    Function flatMap

    • Creates an array of flattened values by running each element in collection through iteratee and concating its result to the other mapped values. The iteratee is invoked with three arguments: (value, index|key, collection).

      Type Parameters

      • T

      Parameters

      • collection: Dictionary<Many<T>> | NumericDictionary<Many<T>> | null | undefined

        The collection to iterate over.

      Returns T[]

      Returns the new flattened array.

    • Parameters

      • collection: object | null | undefined

      Returns any[]

      _.flatMap

    • Type Parameters

      • T
      • TResult

      Parameters

      • collection: List<T> | null | undefined
      • iteratee: ListIterator<T, Many<TResult>>

      Returns TResult[]

      _.flatMap

    • Type Parameters

      • T extends object
      • TResult

      Parameters

      • collection: T | null | undefined
      • iteratee: ObjectIterator<T, Many<TResult>>

      Returns TResult[]

      _.flatMap

    • Parameters

      • collection: object | null | undefined
      • iteratee: string

      Returns any[]

      _.flatMap

    • Parameters

      • collection: object | null | undefined
      • iteratee: object

      Returns boolean[]

      _.flatMap