Spaces:
Running
on
CPU Upgrade
Running
on
CPU Upgrade
export function parseArray(text: string) { | |
let array: string[] = [] | |
try { | |
array = JSON.parse(text) | |
} catch (err) { | |
array = [] | |
} | |
return array | |
} |