Was this helpful?
2 votes
|
The following function returns two variables: a credentials object and a transport string.
When this function returns, the destructuring assignment feature allows you to assign the return value to two different variables in a single operation, like so:
A very nice feature in ES6. |
posted | Apr 02, 2016 |
viewed | 2101 times |
active | Apr 02, 2016 |