Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

replace array element javascript stack overflow

var index = items.indexOf(3452);

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