Created
September 12, 2017 05:12
-
-
Save fanghm/da7fbd379e2d1abcfa802133f7bc9414 to your computer and use it in GitHub Desktop.
From https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Operators/Destructuring_assignment
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
**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