@building-block/idl-domexception
Version:
DOMException polyfill
36 lines (22 loc) • 927 B
Markdown
# idl-domexception
[DOMException](https://heycam.github.io/webidl/#idl-DOMException) polyfill
[](https://www.npmjs.com/package/@building-block/idl-domexception) [](https://unpkg.com/@building-block/idl-domexception/)
### Installation
#### Using npm:
```sh
$ npm install --save @building-block/idl-domexception
```
#### Using yarn:
```sh
$ yarn add @building-block/idl-domexception
```
## Usage
```javascript
import { polyfill } from '@building-block/idl-domexception';
polyfill();
```
Alternatively, you can import the polyfill directly to run the side-effects:
```javascript
import '@building-block/idl-domexception/polyfill';
```
Try with [Runkit](https://npm.runkit.com/@building-block/idl-domexception)