javascript convert array of objects to array of some property code example Example: array objects to array of one property let result = objArray.map(a => a.foo);