1.1.0 • Published 9 years ago

dom-remove v1.1.0

Weekly downloads
16
License
MIT
Repository
github
Last release
9 years ago

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