Is it possible remove delimiters when you array.toString? (javascript)
var myArray = [ \'zero\', \'one\', \'two\', \'three\', \'four\', \'five\' ];
var resul
You could use join
instead of toString
-
var myArray = [ 'zero', 'one', 'two', 'three', 'four', 'five' ];
var result = myArray.join('');
join
will join all the elements of the array into a string using the argument passed to the join
function as a delimiter. So calling join
and passing in an empty string should do exactly what you require.
Demo - http://jsfiddle.net/jAEVY/