Type Alias ArrFromMapFn<T, R>

ArrFromMapFn<T, R>: ((value: T, index?: number) => R)

Callback signature for arrFrom mapFn that is called for every element of array. Each time mapFn executes, the returned value is added to newArray.

Type Parameters

  • T

    Identifies the type of the array elements

  • R = T

    Identifies the type of the elements returned by the map function, defaults to T.

Type declaration

    • (value, index?): 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.

      Returns R

0.9.7