Skip to main content
cngx-src documentation

coerceNumberProperty

Functioncore/utils

projects/core/utils/coerce.util.ts

Description#

Coerces a value to a number.

Returns fallback when the value is null, undefined, NaN, or non-numeric.

Signature#

coerceNumberProperty(value, fallback: number)

Parameters#

@paramvalue
@paramfallbacknumber= 0

Returns#

number