Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
var data = [];
var strToAry = function(line) {
for(var i = 0, num = ''; i < line.length; i++){
if(line[i] !== ' ') {
num += line[i];
} else {
data.push(num);
num = '';
}
}
data.push(num);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment