Skip to content

Instantly share code, notes, and snippets.

@fanghm
Created September 12, 2017 05:12
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save fanghm/da7fbd379e2d1abcfa802133f7bc9414 to your computer and use it in GitHub Desktop.
Save fanghm/da7fbd379e2d1abcfa802133f7bc9414 to your computer and use it in GitHub Desktop.
**Destructuring assignment**
```
var parameters = {controlProtocol: 'CWA', retUnitMgmt: true};
const {controlProtocol, retUnitMgmt} = parameters;
console.log(`controlProtocol: ${controlProtocol}, retUnitMgmt: ${retUnitMgmt}`);
```
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment