@f/empty-element

1.0.0 • Public • Published

empty-element

Build status Git tag NPM version Code style

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

Readme

Keywords

none

Package Sidebar

Install

npm i @f/empty-element

Weekly Downloads

3

Version

1.0.0

License

MIT

Last publish

Collaborators

  • f