• Interpolates between two values based on a given proportion. Supports interpolation of numbers, arrays, or defaults to step interpolation for other types.

    Parameters

    • a: any

      The starting value.

    • b: any

      The ending value.

    • prop: number

      The proportion for interpolation (0 to 1).

    Returns any

    The interpolated value.