Skip to content

Function: clamp ​

â–¸ clamp(val, min?, max?): number

Parameters ​

NameType
valnumber
min?number
max?number

Returns ​

number

Released under the MIT License.