techfort / LokiJS

javascript embeddable / in-memory database
http:/techfort.github.io/LokiJS
MIT License
6.74k stars 482 forks source link

Adding row to specific position #887

Closed dilagurung closed 2 years ago

dilagurung commented 3 years ago

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.

stale[bot] commented 2 years ago

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.