Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

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 }
Source by medium.com #
 
PREVIOUS NEXT
Tagged: #javascript #object #subset
ADD COMMENT
Topic
Name
3+1 =