MCPcopy Create free account
hub / github.com/formkit/formkit / camel

Function camel

packages/utils/src/index.ts:593–597  ·  view source on GitHub ↗
(str: string)

Source from the content-addressed store, hash-verified

591 * @public
592 */
593export function camel(str: string): string {
594 return str.replace(/-([a-z0-9])/gi, (_s: string, g: string) =>
595 g.toUpperCase()
596 )
597}
598
599/**
600 * This converts camel-case to kebab case. It ONLY converts from camel to kebab.

Callers 10

observePropsFunction · 0.90
patternMatchesFunction · 0.90
useInputFunction · 0.90
utils.spec.tsFile · 0.90
addPropsFunction · 0.90
createLibraryPluginFunction · 0.90
observePropsFunction · 0.90
createInitialPropsFunction · 0.90
useInputFunction · 0.90
watchAttributesFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected