(key: string)
| 21 | }; |
| 22 | |
| 23 | export function getLocalStorage(key: string) { |
| 24 | if (typeof window !== "undefined") { |
| 25 | return JSON.parse(localStorage.getItem(key) || "[]"); |
| 26 | } |
| 27 | return []; |
| 28 | } |
| 29 | |
| 30 | export function generateUUID(): string { |
| 31 | return "xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g, function (c) { |
nothing calls this directly
no outgoing calls
no test coverage detected