Skip to content

Latest commit

 

History

History
32 lines (21 loc) · 585 Bytes

README.md

File metadata and controls

32 lines (21 loc) · 585 Bytes

dom-remove Build Status

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