Chore: Move isJSON helper (#23491)
parent
3f2496af41
commit
b50e38d7e3
@ -1,4 +1,4 @@ |
||||
export const isJSON = (value) => { |
||||
export const isJSON = (value: string): boolean => { |
||||
try { |
||||
return !!JSON.parse(value); |
||||
} catch { |
Loading…
Reference in new issue