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.
Similar to a previous for loop answer, this one uses some of the more basic features of javascript:
function looptoUpper(arr){ var newArr = []; for (var i = 0; i < arr.length; i++){ newArr.push(arr[i].toUpperCase()); } return newArr; } looptoUpper(['dom', 'lun', 'mar', 'mer', 'gio', 'ven', 'sab']);