Function: isDecimalColor()
isDecimalColor(
value):value is number
Defined in: functions/isDecimalColor.ts:16
Checks if a value is a valid decimal color. A valid decimal color is an integer between 0 and 0xFFFFFFFF (inclusive).
Parameters
value
any
The value to check.
Returns
value is number
True if the value is a valid decimal color, false otherwise.
Examples
isDecimalColor(16777215); // true
isDecimalColor("#FFFFFF"); // false