dom-remove
v1.1.0
Published
Remove an Element from the DOM
Downloads
94
Readme
dom-remove
Remove an Element from the DOM
Installation
With npm do:
$ npm install dom-remove --save
Install with component(1):
$ component install nk-components/dom-remove
Usage
var remove = require('dom-remove');
var el = document.querySelector('#elmt')
remove(el);
var els = Array.prototype.slice.call(document.querySelectorAll('div'));
remove(els);
License
MIT