Skip to content

@kaelyx/ts-kit / number / ClampUndefinedBehaviour

Variable: ClampUndefinedBehaviour ​

const ClampUndefinedBehaviour: object

Defined in: number/clamp/clamp.types.ts:10

Defines what clamp returns for an invalid value when strict is true. An invalid value is an input of NaN or undefined, or a bound of NaN.

Type Declaration ​

CLAMP_TO_HIGHEST ​

readonly CLAMP_TO_HIGHEST: "clamp-to-highest" = 'clamp-to-highest'

Return max. Returns undefined if max is NaN.

CLAMP_TO_LOWEST ​

readonly CLAMP_TO_LOWEST: "clamp-to-lowest" = 'clamp-to-lowest'

Return min. Returns undefined if min is NaN.

RETURN_UNDEFINED ​

readonly RETURN_UNDEFINED: "return-undefined" = 'return-undefined'

Return undefined.