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