Preparing search index...
The search index is not available
@appsweet-co/ts-utils - v0.41.0
@appsweet-co/ts-utils
fns/math
nearest
Function nearest
nearest
(
base
)
:
(
(
x
)
=>
number
)
Rounds a number to the nearest multiple of
base
.
Parameters
base
:
number
Returns
(
(
x
)
=>
number
)
(
x
)
:
number
Parameters
x
:
number
Returns
number
Settings
Member Visibility
Protected
Inherited
Theme
OS
Light
Dark
@appsweet-
co/ts-
utils -
v0.41.0
fns/arity
fns/array
fns/clone
fns/compose
fns/constant
fns/flip
fns/identity
fns/json
fns/logic
fns/math
add
between
clamp
dec
div
down
inc
max
min
mod
mult
nearest
neg
percent
pow
range
ratio
sub
up
wrap
fns/never
fns/noop
fns/obj
fns/pipe
fns/predicate
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
Rounds a number to the nearest multiple of
base
.