I want to convert a string of that is in camel case to snake case using TypeScript.
Remember that the "snake case" refers to the format style in which each space is replaced by an underscore (_) character and the first letter of each word written in lowercase.
Example: fieldName
to field_name
should be a valid conversion, but FieldName
to Field_Name
is not valid.