Skip to content

Instantly share code, notes, and snippets.

@andrewvc
Created June 11, 2012 20:51
Show Gist options
  • Save andrewvc/2912601 to your computer and use it in GitHub Desktop.
Save andrewvc/2912601 to your computer and use it in GitHub Desktop.
x = _.reduce("a=b,c=d".split(/,/), function (m,kv) { s = kv.split(/=/); m[s[0]] = s[1]; return(m) }, {})
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment