Answers for "js only extract specific properties from object"

2

js only extract specific properties from object

const object = { a: 5, b: 6, c: 7  };
const picked = (({ a, c }) => ({ a, c }))(object);

console.log(picked); // { a: 5, c: 7 }
Posted by: Guest on September-04-2020

Code answers related to "js only extract specific properties from object"

Code answers related to "Javascript"

Browse Popular Code Answers by Language