Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
if (req.responseText.indexOf('{') == 0) {
try {
eval('obj = '+req.responseText);
} catch (err) {
console.warn('unable to do anything with api rsp');
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment