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

Function slug

src/components/common/ComponentList.jsx:73–73  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

71};
72
73const slug = str => (str || '').replace(/\s+/g, '-').toLowerCase();
74const fromPascal = str =>
75 (str || '')
76 .replace(/([a-z0-9])([A-Z])/g, '$1 $2')

Callers 1

cellRendererFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected