Is it possible remove delimiters when you array.toString? (javascript)
var myArray = [ 'zero', 'one', 'two', 'three', 'four', 'five' ];
var result = myArray .toString();
result shoud be "zeroonetwothreefourfive"
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/
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With