I'm looking to find a neat way to create a comma-delimited string from an array. This is how I'm doing it now...
for(i=0;i<10;i++)
{
str = str + ',' + arr[i];
}
str=str.substring(1)
return str;
... but it feels a bit untidy.
See Question&Answers more detail:os