Makes sure a value is within range cuts off the rest
summary (oneliner)
doc
issues
youtube id
caniuse query
collections
Inputs
val (Number)
The number you want to make sure is in range [Minimum
, Maximum
]
min (Number)
The minimum the Result
will be
max (Number)
The maximum the Result
will be
ignore outside values (boolean /Number)
Outputs
result (Number)
The clamped value of Val