var value = [{
"rowid": "one, two, three"
}, {
"rowid": "four"
}]
var selected = value.map(function(varId) {
return varId.rowid.toString();
});
console.log(selected);
console.log(selected.length);
The Output I'm getting is
["one, two, three", "four"]
2
But I'm expecting
["one", "two", "three", "four"]
4
How can this be done?