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

Function getDescendantsOfType

static/word2md/mammoth.browser.js:3221–3225  ·  view source on GitHub ↗
(element, type)

Source from the content-addressed store, hash-verified

3219
3220
3221function getDescendantsOfType(element, type) {
3222 return getDescendants(element).filter(function(descendant) {
3223 return descendant.type === type;
3224 });
3225}
3226
3227function getDescendants(element) {
3228 var descendants = [];

Callers

nothing calls this directly

Calls 1

getDescendantsFunction · 0.70

Tested by

no test coverage detected