Pergunta de entrevista da empresa USAA

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