3 ms·
Yes: const description = ({name: {first, last}, occupation}) => `${first} is a ${occupation}`; Edit: just noticed that `last` is not used, so we can remov
by peferron 12y ago
Yes:
const description = ({name: {first, last}, occupation}) => `${first} is a ${occupation}`;
Edit: just noticed that `last` is not used, so we can remove it from the destructuring:
const description = ({name: {first}, occupation}) => `${first} is a ${occupation}`;