Peta JS Melalui Array dan Return Array Objects

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