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

PHOTO EMBED

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

Saved by @arielvol

a = a.map(function(item) { return item == 3452 ? 1010 : item; });
content_copyCOPY

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