Skip to content

nikku/inherits-browser

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

inherits-browser

A inherits@2 fork that is safe per default to use in browsers.

Usage

import inherits from 'inherits-browser';

function Parent() {}

function Child() {
  Parent.call(this);
}

inherits(Child, Parent);

Why

  • Do not require package.json#browser; always be browser compatible
  • Target modern run-times (IE9+, other browsers + NodeJS) only

License

ISC

About

Browser first inherits utility.

Resources

License

Security policy

Stars

Watchers

Forks

Sponsor this project