Answers for "javascript object get subset"

0

javascript object get subset

const object = { a: 5, b: 6, c: 7  };const subset = (({ a, c }) => ({ a, c }))(object);console.log(subset); // { a: 5, c: 7 }
Posted by: Guest on May-12-2020

Code answers related to "Javascript"

Browse Popular Code Answers by Language