const obj = {
id: 7123879123,
username: 'Vasya',
email: 'qqq@qqq.com',
age: 66,
stuff: {
a: 'a',
b: 'b',
},
};
const picked = (({ username, age, stuff }) => ({ username, age, stuff }))(obj);
console.log(picked);
picked(obj, ['username', 'age', 'stuff'])