Created
          December 17, 2018 10:59 
        
      - 
      
- 
        Save danilo-teixeira/bb409f690da17ec2ffbc2edd3a753b23 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
    
  
  
    
  | function orderTotal(items) { | |
| return items.reduce( (total, product) => { | |
| return total + product.value; | |
| }, 0 ); | |
| } | |
| export { orderTotal }; | 
  
    Sign up for free
    to join this conversation on GitHub.
    Already have an account?
    Sign in to comment