a.forEach(function(item, i) { if (item == 3452) a[i] = 1010; });