Oh nice. Lemme give that a shot. Thank you!

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