I have checked many questions and answers regarding join array with comma separated string, But my problem is that, I am making the string readable for human i.e I have tag
Another quick solution is to replace the last comma with and.
The following code:
var a = [0,1,2,3,4];
a.join(', ').replace(/,(?!.*,)/gmi, ' and');
should do the trick. (Also, play with the regex modifiers to your need).
One probable issue might be of time when you have large array, but it should work.