Had walkthrough of document but could not find the function for adding data to specific position/row of existing collection.
Lets say we have an existing collection:
[{a:1},{a:2},{a:3},{a:4},{a:5},{a:5}]
now I need to insert new value {a:0} on 0th index.
So I am looking for something like unshift() in javascript.
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.
Had walkthrough of document but could not find the function for adding data to specific position/row of existing collection.
Lets say we have an existing collection: [{a:1},{a:2},{a:3},{a:4},{a:5},{a:5}] now I need to insert new value {a:0} on 0th index. So I am looking for something like unshift() in javascript.