var index = items.indexOf(3452); if (index !== -1) { items[index] = 1010; }
var index = items.indexOf(3452); if (~index) { items[index] = 1010; }
if (haystack.includes(needle)) { // do your thing }