Util
Util
Utility functions for common tasks
Kind: global class
- Util
- .resolveColor(color) ⇒
number
- .generateISOString([date]) ⇒
string
|null
- .resolveColor(color) ⇒
Util.resolveColor(color) ⇒ number
Resolves a color to a hexadecimal value
Kind: static method of Util
Returns: number
- The hexadecimal value of the color
Param | Type | Description |
---|---|---|
color | string | number | The 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
Param | Type | Default | Description |
---|---|---|---|
[date] | Date | number | null | Date.now() | The Date object or timestamp to convert to an ISO string |