Lets consider an array :
var a = ["one", "two", "three"];
Now, to update the arrays I have to do :
a[0] = "1";
a[1] = "2";
a[2] = "3";
But I, can't repeat this if the array is larger. I want a function with the help of which, I can do like this :
a.update(0, "1", 2, "3", 3, "4"); // => ["1", "two", "3", "4"]
Yes, you saw that with the help of this I added the fourth property, while first and third got updated? So, can this be made? Or there is a better way to perform the task above?
Thanks In Advance