Answers for "how to select a few properties from an object javascript"

0

how to select a few properties from an object javascript

/*SM*/
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-18-2021

Code answers related to "how to select a few properties from an object javascript"

Code answers related to "Javascript"

Browse Popular Code Answers by Language