mirror of
https://github.com/Comfy-Org/ComfyUI_frontend.git
synced 2026-04-21 14:59:39 +00:00
Add custom nodes manager UI (#2923)
Co-authored-by: github-actions <github-actions@github.com>
This commit is contained in:
@@ -320,3 +320,11 @@ export const paramsToCacheKey = (params: unknown): string => {
|
||||
*/
|
||||
export const generateRandomSuffix = (): string =>
|
||||
Math.random().toString(36).substring(2, 6)
|
||||
|
||||
/**
|
||||
* Formats a number to a locale-specific string
|
||||
* @param num The number to format
|
||||
* @returns The formatted number or 'N/A' if the number is undefined
|
||||
*/
|
||||
export const formatNumber = (num?: number): string =>
|
||||
num?.toLocaleString() ?? 'N/A'
|
||||
|
||||
Reference in New Issue
Block a user