Get selected attributes from Javascript object

Code:

let obj = {name: "yamicode", title: "yami code"};
let picked = (({
      name
    }) => ({
      name
    }))(obj);
console.log(picked);
//{name: "yamicode"}