Splitting An Array With One Element Into An Array With Many Elements
I want to take this array containing one item (a STRING with a bunch of comma delimited items) ['Bucknell Venture Plan Competition, Mitch Blumenfeld, DreamIt Ventures, Deep Fork Ca
Solution 1:
Simple as:
var myArr = ["Bucknell Venture Plan Competition, Mitch Blumenfeld, DreamIt Ventures, Deep Fork Capital, John Ason, Mitchell Blumenfeld, Gianni Martire"];
var myNewArr = myArr[0].split(",");
Solution 2:
I think this should work:
var items = ["Bucknell Venture Plan Competition, Mitch Blumenfeld, DreamIt Ventures, Deep Fork Capital, John Ason, Mitchell Blumenfeld, Gianni Martire"];
vararray = items[0].split(",");
Post a Comment for "Splitting An Array With One Element Into An Array With Many Elements"