element-remove

Just a tiny polyfill for element.remove

Downloads in past

Stats

StarsIssuesVersionUpdatedCreatedSize
element-remove
2311.0.44 years ago5 years agoMinified + gzip package size for element-remove in KB

Readme

element-remove
Just a tiny polyfill for element.remove, one file, no dependency.
https://developer.mozilla.org/en-US/docs/Web/API/ChildNode/remove
https://github.com/jserz/jspiece/blob/master/DOM/ChildNode/remove()/remove().md
npm downloads
Compatibility
IE9 and IE9+
For browsers before IE9, you may need babel-polyfill
Usage
``npm install --save element-remove``
Webpack
Just add element-remove to your entry, you are all good
``['element-remove', 'app.js']``
Javascript
You can import this polyfill at your app entry if you are not using webpack
es5
require('element-remove');
es6
import('element-remove');

License

MIT