How to use destructing assignment in ES6

Here is :
Answer to similar question.

See if that helps.