empty an element.
JavaScript
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
test
.gitignore
History.md
Makefile
Readme.md
component.json
index.js

Readme.md

empty

empty an element.

Installation

$ component install yields/empty

Example

var el = document.createElement('div');
el.appendChild(document.createElement('ul'));
assert('' == empty(el).innerHTML);

License

MIT