```js Object.values(data) .flat() .filter(({ required }) => required) .map(({ name }) => name) ```