MCPcopy Create free account
hub / github.com/dailydotdev/apps / toSlug

Function toSlug

packages/shared/src/components/shell/useQueryTab.ts:8–8  ·  view source on GitHub ↗
(tab: string)

Source from the content-addressed store, hash-verified

6const tabParam = 'tab';
7
8const toSlug = (tab: string): string => tab.toLowerCase().replace(/\s+/g, '-');
9
10interface QueryTab<T extends string> {
11 activeTab: T;

Callers 1

useQueryTabFunction · 0.85

Calls 1

replaceMethod · 0.80

Tested by

no test coverage detected