UNPKG

@kickscondor/umbrellajs

Version:

Lightweight and intuitive javascript library

9 lines (8 loc) 215 B
// Remove all children of the matched nodes from the DOM. u.prototype.empty = function () { return this.each(function (node) { while (node.firstChild) { node.removeChild(node.firstChild); } }); };