An open API service indexing awesome lists of open source software.

https://github.com/nikku/inherits-browser

Browser first inherits utility.
https://github.com/nikku/inherits-browser

Last synced: 3 months ago
JSON representation

Browser first inherits utility.

Awesome Lists containing this project

README

          

# inherits-browser

A [inherits@2](https://www.npmjs.com/package/inherits) fork that is safe per default to use in browsers.

## Usage

```javascript
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