(prefix: string | number = '', postfix: string | number = '')
| 32 | * Generate a unique id |
| 33 | */ |
| 34 | export function randomId(prefix: string | number = '', postfix: string | number = ''): string { |
| 35 | const id = ++uniqueIdCounter; |
| 36 | return `${prefix}${id}${postfix}`; |
| 37 | } |
| 38 | |
| 39 | /** |
| 40 | * Capitalizes given string |