+ 4

How to Modify Array That get from mongodb without using JSON and New Array? 😉

Example: let arr = playerService(); // arr[0] = { 'name' : 'darshan', age : 21 }

10th Sep 2019, 5:36 PM
Darshan Raval
Darshan Raval - avatar
1 Answer
+ 1
It’s not clear what do you mean by modifying an array. From the one hand arrays by definition have no ability to be modified. From other hand JavaScript arrays tecnically are not arrays, more are like list objects, so you can perform insert/delete operations on them if you need.
19th Sep 2019, 7:39 PM
Rustem Sharipov
Rustem Sharipov - avatar