Function map

  • Transform values of an array.

    Type Parameters

    • T

    • U = T

    Parameters

    • x: T[]

      an array

    • fm: MapFunction<T, T | U>

      map function (v, i, x)

    Returns (T | U)[]

    [fm(v₀), fm(v₁), ...] | vᵢ ∈ x

Generated using TypeDoc