References
hooks
summary | ||
public |
F useDebounce(value: *, delay: number): * A hook which used for debounce states for a certain amount of time(ms) |
utils
summary | ||
public |
F convertHexToRgb(color: string): string Coverts any HEX color code to RGB |
|
public |
F convertPixelRangeToArray(str: string): array Convert pixel range to list of pixels |
|
public |
F deduplicateArray(arr: array): array Deduplicates any array |
|
public |
F removeExtraSpacesAndCommas(str: string): string Remove multiple consecutive spaces, trialing space and comma |
|
public |
F roundToNearest(value: number, precision: number): number Coverts any HEX color code to RGB |
|
public |
F sortArrayAscending(arr: array): array Sort array in ascending order |
|
public |
F clearAll() Clear all data stored in local storage |
|
public |
F getKey(key: string): string Get the data stored in specific key of local storage |
|
public |
F removeKey(key: string) Remove the data stored in specific key of local storage |
|
public |
F setKey(key: string, data: *) Store data to local storage when key is provided |
|
public |
F isValidFontSize(str: string): boolean Validate if user input is a valid font size |
|
public |
F isValidPositiveInteger(str: string): boolean Validate if user input is a positive integer |