javascript - How to replace item in array? - Stack Overflow

PHOTO EMBED

Tue Nov 23 2021 13:30:40 GMT+0000 (Coordinated Universal Time)

Saved by @arielvol

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

https://stackoverflow.com/questions/5915789/how-to-replace-item-in-array