Created
          June 29, 2023 10:36 
        
      - 
      
- 
        Save batur/316065a7c4f550273176bdf2867130d7 to your computer and use it in GitHub Desktop. 
    Compose Function in JS
  
        
  
    
      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
    
  
  
    
  | const compose = (...fns) => x => fns.reduceRight((v, f) => f(v), x); | 
  
    Sign up for free
    to join this conversation on GitHub.
    Already have an account?
    Sign in to comment