Skip to main content

Utils

Miscellaneous utility functions.

getCurrentTimestamp()

Returns the current timestamp in milliseconds.

function getCurrentTimestamp(): number;

isStringHexColor()

Checks if a string is a valid hexadecimal color.

function isStringHexColor(color: string): boolean;