• 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:
          | undefined
          | null
          | Dictionary<Many<T>>
          | NumericDictionary<Many<T>>

      The collection to iterate over.

    Returns T[]

    Returns the new flattened array.

  • Parameters

    • collection: undefined | null | object

    Returns any[]

    _.flatMap

  • Type Parameters

    • T
    • TResult

    Parameters

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

    Returns TResult[]

    _.flatMap

  • Type Parameters

    • T extends object
    • TResult

    Parameters

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

    Returns TResult[]

    _.flatMap

  • Parameters

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

    Returns any[]

    _.flatMap

  • Parameters

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

    Returns boolean[]

    _.flatMap