Type alias MapFunction<T, U>

MapFunction<T, U>: ((v, i, x) => U)

Type Parameters

  • T

  • U

Type declaration

    • (v, i, x): U
    • Handle transformation of a value to another.

      Parameters

      • v: T

        value in array

      • i: number

        index of value in array

      • x: T[]

        array containing the value

      Returns U

      transformed value

Generated using TypeDoc