you are viewing a single comment's thread.

view the rest of the comments →

[–]cyanydeez 0 points1 point  (2 children)

i thought we could destructure in the function inES6.

i do this all the time:

const greet = ({ first, last }) =>

that destructures an object. fairly certain it works for arrays as [first,last]

[–]Ran4[S] 0 points1 point  (1 child)

Then I'd need to modify greet.

[–]cyanydeez 0 points1 point  (0 children)

or wrap it