dom-move

1.0.1 • Public • Published

dom-move

Moves child elements from a DOM node to another dom node.

usage

move(source, destination);

All the child nodes of source will be removed, and appended in destination. The destination node is returned so you can do:

var content = move(source, document.createElement('div'));

If the second parameter is ommited, a document fragment is created:

var fragment = move(source);

Readme

Keywords

none

Package Sidebar

Install

npm i dom-move

Weekly Downloads

3

Version

1.0.1

License

none

Last publish

Collaborators

  • coreh