• Flattens the source array of iterables into new push iterable.

    Calling this function is the same as calling flatMapArray(source, element => element).

    Type Parameters

    • T

      A type of converted elements.

    Parameters

    • array: ArrayLike<Iterable<T>>

      A source array-like instance of iterables.

    Returns PushIterable<T>

    New push iterable with each element of array being flattened.

  • First maps each element of the source array using a mapping function, then flattens the result into new push iterable.

    Type Parameters

    • TSrc

      A type of array elements.

    • TConv

      A type of converted elements.

    Parameters

    • array: ArrayLike<TSrc>

      A source array-like instance of elements to convert.

    • convert: ((this, element) => Iterable<TConv>)

      A function that produces new iterable, taking array element as the only parameter.

        • (this, element): Iterable<TConv>
        • Parameters

          • this: void
          • element: TSrc

          Returns Iterable<TConv>

    Returns PushIterable<TConv>

    New push iterable with each element being the flattened result of the convert function call.

Generated using TypeDoc