Domanda di colloquio di USAA

How would you re-write this function in one line with ES6 and destructuring.