23
rated 0 times
[
28]
[
5]
/ answers: 1 / hits: 28717
/ 10 Years ago, tue, september 30, 2014, 12:00:00
I have an array of values to which I want to add some prefix:
var arr = ["1.jpg", "2.jpg", "some.jpg"];
Adding the prefix images/
should result in this:
newArr = ["images/1.jpg", "images/2.jpg", "images/some.jpg"];
More From » javascript