Function clamp

  • Ensure the value is no greater or less than the min/max values. If it is return the boundary value.

    Parameters

    • val: any
    • min: any
    • max: any

    Returns any

Generated using TypeDoc