MCPcopy Create free account
hub / github.com/TruthHun/BookStack / remove

Function remove

static/word2md/turndown.js:475–481  ·  view source on GitHub ↗

* remove(node) removes the given node from the DOM and returns the * next node in the sequence. * * @param {Node} node * @return {Node} node

(node)

Source from the content-addressed store, hash-verified

473 * @return {Node} node
474 */
475function remove (node) {
476 var next = node.nextSibling || node.parentNode;
477
478 node.parentNode.removeChild(node);
479
480 return next
481}
482
483/**
484 * next(prev, current, isPre) returns the next node in the sequence, given the

Callers 1

collapseWhitespaceFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected