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

Function defaultFilter

static/word2md/mammoth.browser.js:7703–7707  ·  view source on GitHub ↗
(name)

Source from the content-addressed store, hash-verified

7701var noCopyPropsPattern = new RegExp("^(?:" + noCopyProps.join("|") + ")$");
7702
7703var defaultFilter = function(name) {
7704 return util.isIdentifier(name) &&
7705 name.charAt(0) !== "_" &&
7706 name !== "constructor";
7707};
7708
7709function propsFilter(key) {
7710 return !noCopyPropsPattern.test(key);

Callers 1

promisifiableMethodsFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected