Last active
          January 4, 2017 22:31 
        
      - 
      
- 
        Save jschwarty/868e63da9325fcd6511fad480c324a02 to your computer and use it in GitHub Desktop. 
    JavaScript object destructuring in function signature
  
        
  
    
      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
    
  
  
    
  | function justDoIt(color, { size, model }) { | |
| console.log(`Laced up the size ${size} ${model} kicks (${color})`); | |
| } | |
| let shoe = { | |
| size: 9.5, | |
| model: 'Air Jordan Retro 4' | |
| }; | |
| justDoIt('black', shoe); | 
  
    Sign up for free
    to join this conversation on GitHub.
    Already have an account?
    Sign in to comment