call data from object in array code example
Example 1: array objects to array of one property
let result = objArray.map(a => a.foo);
Example 2: arrays inside array of objects
var response = {data: [{users: [1,2,3]}, {users: [4,5,6]}]}
var users = response.data.map(o => o.users)
const usersCollection = [].concat(...users)
console.log(usersCollection)