Answers for "array map destructuring"

0

array map destructuring

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

arr.map(({ name, from }) => console.log(name, from));
Posted by: Guest on June-11-2020

Code answers related to "Javascript"

Browse Popular Code Answers by Language