I have an array of character with commas separating them. I need to split an array but retain my comma inbetween each character.
See below for an example array:
var myArray = [a,,,b,c,d,,,]
How about you use :
var myArray = [a,,,b,c,d,,,]; var str = myArray.join();
This will give a string of array elements, preserving the commas.