console.log( "1,2,3".split(","), "1,2,3".split(",").map(function(x){return +x}) ) //>>>> [ '1', '2', '3' ] [ 1, 2, 3 ]