Created
          August 2, 2016 17:57 
        
      - 
      
- 
        Save VictorMedeiros/41cb9c14534911f5385e35e1a9f7e958 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
    
  
  
    
  | let multiply = (a, b) => b === undefined ? b => a * b : a * b; | |
| let double = multiply(2); | |
| double(3); // => 6 | |
| multiply(2, 3); // => 6 | 
  
    Sign up for free
    to join this conversation on GitHub.
    Already have an account?
    Sign in to comment