Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

replace array element javascript stack overflow

var index = items.indexOf(3452);

if (index !== -1) {
    items[index] = 1010;
}
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #replace #array #element #javascript #stack #overflow
ADD COMMENT
Topic
Name
9+7 =