Skip to content

Just a tiny polyfill for element.remove, one file, no dependency.

License

Notifications You must be signed in to change notification settings

chenzhenxi/element-remove

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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/js_piece/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

About

Just a tiny polyfill for element.remove, one file, no dependency.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •