MCPcopy Create free account
hub / github.com/Openpanel-dev/openpanel / filterCn

Function filterCn

apps/start/src/components/dot.tsx:9–14  ·  view source on GitHub ↗
(filter: string[], className: string | undefined)

Source from the content-addressed store, hash-verified

7}
8
9function filterCn(filter: string[], className: string | undefined) {
10 const split: string[] = className?.split(' ') || [];
11 return split
12 .filter((item) => !filter.some((filterItem) => item.startsWith(filterItem)))
13 .join(' ');
14}
15
16export function Dot({ className, size = 8, animated }: DotProps) {
17 const style = {

Callers 1

DotFunction · 0.85

Calls 2

joinMethod · 0.80
someMethod · 0.45

Tested by

no test coverage detected