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

Function toPascal

src/components/navs/Sidebar.jsx:42–46  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

40const scrollToTop = () => window.scrollTo(0, 0);
41const slug = str => str.replace(/\s+/g, '-').toLowerCase();
42const toPascal = str =>
43 str
44 .split('-')
45 .map(w => w.charAt(0).toUpperCase() + w.slice(1))
46 .join('');
47
48// ─── Custom Hooks ────────────────────────────────────────────────────────────
49const useFavoritesSync = () => {

Callers 1

Sidebar.jsxFile · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected