Created
March 24, 2018 21:24
-
-
Save r37r0m0d3l/1d830e7e782d5e7c04cdab2ef50d6b40 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
| var car = { | |
| model: 'bmw 2018', | |
| engine: { | |
| v6: true, | |
| turbo: true, | |
| vin: 12345 | |
| } | |
| } | |
| const modelAndVIN = ({model, engine: {vin}}) => { | |
| console.log(`model: ${model} vin: ${vin}`); | |
| } | |
| modelAndVIN(car); // => model: bmw 2018 vin: 12345 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment