I have this list of objects -
var o_list = [{id:1,name:jo},{id:2,name:mo}];
and I want to extract something like this -
var list = [1,2]
Is there anything already built or how can we implement this.
I have this list of objects -
and I want to extract something like this - var list = [1,2] Is there anything already built or how can we implement this. |
|||||||||
|
You can just map it
|
|||
you can do this using filters https://docs.angularjs.org/api/ng/filter/filter
|
||||
|
You can use only javscript
|
|||
|
|
|||
|
you can use this simple for loop
|
|||
|
Alternate you can use underscore.js each method to get results
|
|||
|