Function map

  • Curried _map

    Type Parameters

    • T1
    • T2

    Returns Curried2<((val, index?, arr?) => T2), T1[], T2[]> | Curried2<((val, key?, obj?) => T2), Record<string, T1>, Record<string, T2>>

  • Curried _map

    Type Parameters

    • T1
    • T2

    Parameters

    • fn: ((val, index?, arr?) => T2)
        • (val, index?, arr?): T2
        • Parameters

          • val: T1
          • Optional index: number
          • Optional arr: T1[]

          Returns T2

    Returns Curried1<T1[], T2[]>

  • Curried _map

    Type Parameters

    • T1
    • T2

    Parameters

    • fn: ((val, key?, obj?) => T2)
        • (val, key?, obj?): T2
        • Parameters

          • val: T1
          • Optional key: string
          • Optional obj: Record<string, T1>

          Returns T2

    Returns Curried1<Record<string, T1>, Record<string, T2>>

  • Curried _map

    Type Parameters

    • T1
    • T2

    Parameters

    • fn: ((val, index?, arr?) => T2)
        • (val, index?, arr?): T2
        • Parameters

          • val: T1
          • Optional index: number
          • Optional arr: T1[]

          Returns T2

    • arr: T1[]

    Returns T2[]

  • Curried _map

    Type Parameters

    • T1
    • T2

    Parameters

    • fn: ((val, key?, obj?) => T2)
        • (val, key?, obj?): T2
        • Parameters

          • val: T1
          • Optional key: string
          • Optional obj: Record<string, T1>

          Returns T2

    • obj: Record<string, T1>

    Returns Record<string, T2>