File size: 105 Bytes
17c3edf
5853d12
 
 
 
 
 
1
2
3
4
5
6
7
8
export function safeParse(str: string) {
	try {
		return JSON.parse(str);
	} catch {
		return null;
	}
}