JavaScript Extrsct obiekt
const pick = (...props) => o => props.reduce((a, e) => ({ ...a, [e]: o[e] }), {});
Itchy Iguana
const pick = (...props) => o => props.reduce((a, e) => ({ ...a, [e]: o[e] }), {});
pick('color', 'height')(elmo);