Created
November 15, 2014 20:05
-
-
Save tomdale/7d17530c12dbc104b15d to your computer and use it in GitHub Desktop.
destructuring assignment example
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
// before | |
var displayAnnotation = config.displayAnnotation, | |
width = config.width, | |
axisHeight = config.axisHeight, | |
barsLeftMargin = config.barsLeftMargin, | |
barsRightMargin = config.barsRightMargin; | |
// after | |
var { displayAnnotation, | |
width, | |
axisHeight, | |
barsLeftMargin, | |
barsRightMargin } = config; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Nice!