We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b213ad3 commit a1d24c3Copy full SHA for a1d24c3
src/hyphenate.ts
@@ -0,0 +1,3 @@
1
+export function hyphenate(s: string): string {
2
+ return s.replace(/([A-Z])/g, '-$1').toLowerCase()
3
+}
0 commit comments