public/utils.js
// Tries to parse JSON returning undefined if it fails
Tries to parse JSON returning undefined if it fails
Tries to parse JSON returning undefined if it fails
function tryParse(text) {
    try {
        return JSON.parse(text);
    } catch {
        return undefined;
    }
}
function tryParse ( text ) { try { return JSON . parse ( text ) ; } catch { return undefined ; } }
Tries to parse JSON returning undefined if it fails
Tries to parse JSON returning undefined if it fails