destrukcja mapy tablicy

var arr = [
  { name: "Anuja", from: "Saurav" },
  { name: "Saurav", from: "Anuja" },
  { name: "All", from: "All" },
];

arr.map(({ name, from }) => console.log(name, from));
Horrible Hippopotamus