title: How to convert camelcase to snake case in Javascript?
body: <p>I want to convert a string of that is in camel case to snake case using TypeScript.</p>
  <p>Remember that the &quot;snake case&quot; 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.</p>
  <p>Example: <code>fieldName</code> to <code>field_name</code> should be a valid conversion, but <code>FieldName</code> to <code>Field_Name</code> is not valid.</p>