Computer Science, asked by rachanavyas4716, 1 year ago

How to splice object which is already added in array in javascript?

Answers

Answered by Anonymous
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"});
Similar questions