empty-element
Remove all of a DOM element's children
Installation
$ npm install @f/empty-element
Usage
var empty = require('@f/empty-element')
empty(document.body)
document.body.children.length === 0
API
empty(node)
-
node
- The DOM node you want to empty
Returns: node
(the node you passed in)
License
MIT