MCPcopy Create free account
hub / github.com/DavidHDev/react-bits / filter

Function filter

src/content/Components/FlyingPosters/FlyingPosters.jsx:111–117  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

109 };
110
111 const filter = key => {
112 const match = pattern => (typeof pattern === 'string' ? key === pattern : pattern.test(key));
113
114 if (include) return include.some(match);
115 if (exclude) return !exclude.some(match);
116 return true;
117 };
118
119 for (const [object, key] of getAllProperties(self.constructor.prototype)) {
120 if (key === 'constructor' || !filter(key)) continue;

Callers 1

AutoBindFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected