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

Function removeDuplicateOrEmptyJumps

static/word2md/mammoth.browser.js:5156–5164  ·  view source on GitHub ↗
(stacks)

Source from the content-addressed store, hash-verified

5154}
5155
5156function removeDuplicateOrEmptyJumps(stacks) {
5157 for (var i = 0; i < stacks.length; ++i) {
5158 if (stacks[i].length === 0 ||
5159 ((i + 1 < stacks.length) && stacks[i][0] === stacks[i+1][0])) {
5160 stacks.splice(i, 1);
5161 i--;
5162 }
5163 }
5164}
5165
5166function removeCommonRoots(stacks) {
5167 var current = stacks[0];

Callers 1

mammoth.browser.jsFile · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected