I\'m interested if there is any function like array_map or array_walk from php.
Don\'t need an for that travels all the array. I can do that for myself.
Check out JavaScript Array.map for info on the official JavaScript map function. You can play around with the sample there to see how the function works. Try copying this into the example box:
var array = ['dom', 'lun', 'mar', 'mer', 'gio', 'ven', 'sab'];
var uppers = array.map(function(x) { return x.toUpperCase(); });
console.log(uppers);
And it will print:
DOM,LUN,MAR,MER,GIO,VEN,SAB