@nevware21/ts-utils
    Preparing search index...

    Type Alias ArrFlatMapCallbackFn<T, R>

    ArrFlatMapCallbackFn: (
        value: T,
        index?: number,
        array?: ArrayLike<T>,
    ) => R | ReadonlyArray<R>

    Callback signature for arrFlatMap. Each invocation may return either a single value or an array of values to be flattened into the result by one level.

    Type Parameters

    • T

      Identifies the type of the array elements

    • R = T

      Identifies the type of the flattened output values, defaults to T.

    Type Declaration

      • (value: T, index?: number, array?: ArrayLike<T>): R | ReadonlyArray<R>
      • Parameters

        • value: T

          The current element being processed in the array.

        • Optionalindex: number

          The index of the current element being processed in the array.

        • Optionalarray: ArrayLike<T>

          The array-like object that the flatMap function was called on.

        Returns R | ReadonlyArray<R>

    0.14.0