javascript utility function to get the properties from an array of object code example Example: array objects to array of one property let result = objArray.map(a => a.foo);