ganti elemen array javascript stack overflow

var index = items.indexOf(3452);

if (index !== -1) {
    items[index] = 1010;
}
2 Programmers 1 Bug