pick equivalen in es6

JavaScript
{...['whitelisted', 'key'].reduce((mem, key) => ({ ...mem, [key]: obj[key] }), {})}
Source

Also in JavaScript: