How to splice object which is already added in array in javascript?
Answers
Answered by
0
event_id=[{"0":"e1"},{"0","e2"},{"0","e4"}];
How do I add an element to that array?
I thought of
event_id.splice(1,0,{"0":"e5"});
How do I add an element to that array?
I thought of
event_id.splice(1,0,{"0":"e5"});
Similar questions