Transforms string keys into snake_case format. Implements (BasaltKeyTransformer).
Transforms a single key from any case to snake_case.
The key string to transform into snake_case.
The key string transformed into snake_case, with underscores between words.
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-Key-Name');Returns "my_key_name" Copy
transformKey('My-Key-Name');Returns "my_key_name"
Transforms string keys into snake_case format. Implements (BasaltKeyTransformer).