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

Function filter

src/tailwind/Components/FlyingPosters/FlyingPosters.jsx:109–115  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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

Callers 1

AutoBindFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected