Skip to content

Util

Util

Utility functions for common tasks

Kind: global class

Util.resolveColor(color) ⇒ number

Resolves a color to a hexadecimal value

Kind: static method of Util
Returns: number - The hexadecimal value of the color

ParamTypeDescription
colorstring | numberThe color to resolve

Util.generateISOString([date]) ⇒ string | null

Generates an ISO string from a Date object or timestamp

Kind: static method of Util
Returns: string | null - The ISO string or null if date is null

ParamTypeDefaultDescription
[date]Date | number | nullDate.now()The Date object or timestamp to convert to an ISO string