I want to know how to remove comma from below list array elements, my code:
var lUserNames= [];
$.each(lUsers, function( index, value ) {
lUserNames.push("<li>" + lUsers[index].name + "</li>");
lUserNames.join("");
});
Output with above code:
. User1
,
. User2
,
. User3
I've tried several methods for joining, none of which worked.