showing results for - "how to select a few properties from an object javascript"
Kilian
07 Feb 2016
1/*SM*/
2const object = { a: 5, b: 6, c: 7  };
3const picked = (({ a, c }) => ({ a, c }))(object);
4
5console.log(picked); // { a: 5, c: 7 }