For example, how do I achieve the following without iterating over the array?
var a = [1, 2, 3] * 5; // a should equal [5, 10, 15]
You can use .map but you also have to create a new variable to throw the new values in:
var a = [1,2,3]; var b = a.map(function(x){ return x * 5; }); alert(b);