Created
January 11, 2014 14:14
-
-
Save stackptr/8371369 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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