Function limit

  • Limit a number to a minimum of min and a maximum of max

    Source

    Source code of limit

    Parameters

    • value: number

      number to limit

    • min: number

      minimum limit

    • max: number

      maximum limit

    Returns number

    limited/constrained number

Generated using TypeDoc