Preparing search index...
The search index is not available
@appsweet-co/ts-utils - v0.39.1
@appsweet-co/ts-utils
fns/math
clamp
Function clamp
clamp
(
min
)
:
(
(
max
)
=>
(
(
val
)
=>
number
)
)
Returns a number between
min
and
max
values.
Parameters
min
:
number
Returns
(
(
max
)
=>
(
(
val
)
=>
number
)
)
(
max
)
:
(
(
val
)
=>
number
)
Parameters
max
:
number
Returns
(
(
val
)
=>
number
)
(
val
)
:
number
Parameters
val
:
number
Returns
number
Settings
Member Visibility
Protected
Inherited
Theme
OS
Light
Dark
@appsweet-
co/ts-
utils -
v0.39.1
fns/arity
fns/array
fns/clone
fns/compose
fns/constant
fns/flip
fns/identity
fns/json
fns/logic
fns/math
add
clamp
dec
div
inc
max
min
mod
mult
neg
percent
pow
ratio
sub
fns/never
fns/noop
fns/obj
fns/pipe
fns/predicate
fns/range
fns/string
fns/throwable
types/arity
types/array
types/duration
types/effect
types/either
types/functional
types/iso
types/nominal
types/object
types/option
types/predicate
types/primitive
types/result
types/timestamp
Generated using
TypeDoc
Returns a number between
min
andmax
values.