Transforms string keys into kebab-case format. Implements (BasaltKeyTransformer).
Transforms a single key from any case to kebab-case.
The key string to transform into kebab-case.
The key string transformed into kebab-case, with all letters in lower case and words separated by hyphens.
transformKey('myKeyName');Returns "my-key-name" Copy
transformKey('myKeyName');Returns "my-key-name"
transformKey('MyKeyName');Returns "my-key-name" Copy
transformKey('MyKeyName');Returns "my-key-name"
transformKey('my_long_key_name');Returns "my-long-key-name" Copy
transformKey('my_long_key_name');Returns "my-long-key-name"
Transforms string keys into kebab-case format. Implements (BasaltKeyTransformer).