Each item of this array is some number.
var items = Array(523,3452,334,31, ...5346);
How do I replace some number in with array with a new on
var index = Array.indexOf(Array value); if (index > -1) { Array.splice(index, 1); }
from here you can delete a particular value from array and based on the same index you can insert value in array .
Array.splice(index, 0, Array value);