I'm trying a simple string split in NodeJS, but it is returning an object, not array.
var mytext = "a,b,c,d,e,f,g,h,i,j,k";
var arr = mytext.split(",");
console.log(typeof mytext); <======= output string
console.log(typeof arr); <======= output object
jsfiddle: http://jsfiddle.net/f4NnQ/
why?
arrayis anobject