Function instantString

  • Functions the same way instantNumber works. Convert strings to numbers, and then interpolates the numbers, at the end if there are units on the first value in the values array, it will use that unit for the interpolated result. Make sure to read instantNumber.

    Source

    Source code of instantString

    Parameters

    • t: number
    • values: (string | number)[]
    • decimal: number = 3

    Returns string

Generated using TypeDoc