Skip to content

Instantly share code, notes, and snippets.

@stackptr
Created January 11, 2014 14:14
Show Gist options
  • Save stackptr/8371369 to your computer and use it in GitHub Desktop.
Save stackptr/8371369 to your computer and use it in GitHub Desktop.
var graph = {
rows: []
}
graph.readLine = function(line){
if (line == "") return;
this.rows.push(line);
}
"Test string".split("\n").forEach(graph.readLine);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment