Skip to content

Instantly share code, notes, and snippets.

@themusicman
Created July 3, 2012 01:38
Show Gist options
  • Save themusicman/3036990 to your computer and use it in GitHub Desktop.
Save themusicman/3036990 to your computer and use it in GitHub Desktop.
Breaks apart things
var collider = function(string) {
var arr = [],
parts = string.split('[');
for (index in parts) {
arr.push(parts[index].replace(']', ''))
}
return arr;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment