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

Function removeEmpty

static/word2md/mammoth.browser.js:2274–2278  ·  view source on GitHub ↗
(nodes)

Source from the content-addressed store, hash-verified

2272}
2273
2274function removeEmpty(nodes) {
2275 return flatMap(nodes, function(node) {
2276 return emptiers[node.type](node);
2277 });
2278}
2279
2280function flatMap(values, func) {
2281 return _.flatten(_.map(values, func), true);

Callers 2

simplifyFunction · 0.70
elementEmptierFunction · 0.70

Calls 1

flatMapFunction · 0.70

Tested by

no test coverage detected