Keyyed array values

For example i have an array “getPagesvs.data.data”

“getPagesvs.data.data[0].id” this gives me the first id value. How can i get all id values in that array into a new array value in server connect?

Hi,

Try this:
getPagesvs.data.data.groupBy('id').keys()
It should return you all the ID property values like [1,2,3,4].

Thank you