+ 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 }
1 Antwort
+ 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.