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

Function getDescendants

static/word2md/mammoth.browser.js:3227–3235  ·  view source on GitHub ↗
(element)

Source from the content-addressed store, hash-verified

3225}
3226
3227function getDescendants(element) {
3228 var descendants = [];
3229
3230 visitDescendants(element, function(descendant) {
3231 descendants.push(descendant);
3232 });
3233
3234 return descendants;
3235}
3236
3237function visitDescendants(element, visit) {
3238 if (element.children) {

Callers 1

getDescendantsOfTypeFunction · 0.70

Calls 1

visitDescendantsFunction · 0.70

Tested by

no test coverage detected