Extracts a given property from an array of objects