JS -Karte über Array und Rückgabe von Objekten zurück

const func = (arr) => arr.map((person) => ({ name: person.name }));
Poor Panda