Created
          March 22, 2024 13:43 
        
      - 
      
- 
        Save oharsta/63415e09430d742ae9ab7c83b612515a to your computer and use it in GitHub Desktop. 
    JS range
  
        
  
    
      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 range = (start, end, includeEnd=false) => Array.from({ length: end - start + (includeEnd ? 1 : 0) }, (_, i) => i + start); | 
  
    Sign up for free
    to join this conversation on GitHub.
    Already have an account?
    Sign in to comment