UNPKG

@kickscondor/umbrellajs

Version:

Lightweight and intuitive javascript library

11 lines (10 loc) 285 B
// Delete the matched nodes from the DOM u.prototype.remove = function () { // Loop through all the nodes return this.each(function (node) { // Perform the removal only if the node has a parent if (node.parentNode) { node.parentNode.removeChild(node); } }); };