MCPcopy Create free account
hub / github.com/ecomfe/tempad-dev / mergeClasses

Function mergeClasses

packages/extension/utils/component.ts:597–601  ·  view source on GitHub ↗
(c1: string, c2: string)

Source from the content-addressed store, hash-verified

595}
596
597function mergeClasses(c1: string, c2: string): string {
598 const s = new Set([...c1.split(/\s+/), ...c2.split(/\s+/)])
599 s.delete('')
600 return Array.from(s).join(' ')
601}

Callers 1

mergeAttributesFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected