Function interpolateString

  • Functions the same way interpolateNumber 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 interpolateNumber.

    Source

    Source code of interpolateString

    Parameters

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

    Returns string

Generated using TypeDoc