KeyedMapper<N, K, R>: ((value, key, i) => R)

A function that maps a function along a set of entries.

Type Parameters

  • N

    The type of the values being processed in the mapping.

  • K = string

    The type of the keys used during the mapping (default: string).

  • R = void

    The type of the result.

Type declaration

    • (value, key, i): R
    • Parameters

      • value: N

        The value being processed in the mapping.

      • key: K

        The key associated with the value being processed in the mapping.

      • i: number

        The index of the current value in the mapoing (optional).

      Returns R

Returns

  • The final map being applied.