@kaelyx/ts-kit / number / ClampUndefinedBehaviour
Variable: ClampUndefinedBehaviour
constClampUndefinedBehaviour: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
readonlyCLAMP_TO_HIGHEST:"clamp-to-highest"='clamp-to-highest'
Return max. Returns undefined if max is NaN.
CLAMP_TO_LOWEST
readonlyCLAMP_TO_LOWEST:"clamp-to-lowest"='clamp-to-lowest'
Return min. Returns undefined if min is NaN.
RETURN_UNDEFINED
readonlyRETURN_UNDEFINED:"return-undefined"='return-undefined'
Return undefined.