Created
          July 28, 2021 14:29 
        
      - 
      
- 
        Save extrimua/27a90cb7b93a6ef482a8291f23ce3685 to your computer and use it in GitHub Desktop. 
    Node.js Inherits
  
        
  
    
      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
    
  
  
    
  | // Inherits Prototype | |
| util.inherits(Constructor, SuperConstructor) | |
| // Inherits Instance | |
| Object.assign(new Constructor(), new SuperConstructor()) | 
  
    Sign up for free
    to join this conversation on GitHub.
    Already have an account?
    Sign in to comment