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

Function copyDescriptors

static/word2md/mammoth.browser.js:9461–9471  ·  view source on GitHub ↗
(from, to, filter)

Source from the content-addressed store, hash-verified

9459}
9460
9461function copyDescriptors(from, to, filter) {
9462 var keys = es5.names(from);
9463 for (var i = 0; i < keys.length; ++i) {
9464 var key = keys[i];
9465 if (filter(key)) {
9466 try {
9467 es5.defineProperty(to, key, es5.getDescriptor(from, key));
9468 } catch (ignore) {}
9469 }
9470 }
9471}
9472
9473var asArray = function(v) {
9474 if (es5.isArray(v)) {

Callers

nothing calls this directly

Calls 1

filterFunction · 0.70

Tested by

no test coverage detected