Skip to content

Instantly share code, notes, and snippets.

osher

Block or report user

Report or block osher

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@osher
osher / parsing-long-string.js
Last active Jan 18, 2016
In favor of loops
View parsing-long-string.js
function buildObject(str) {
var newObj = {};
var len = str.length;
var at = 1;
if (str[0] != "{")
return null;
if (len < 1)
console.log('broke out');
You can’t perform that action at this time.