Fügen Sie jedem Element in einem Array JavaScript Text hinzu
var arr = ['first', 'second', 'third'];
arr = arr.map(i => '#' + i);
Cloudy Crayfish
var arr = ['first', 'second', 'third'];
arr = arr.map(i => '#' + i);