Skip to content
Advertisement

Transform a string from camel case to snake case and vice versa

I would like transform string with uppercase to string with underscore like :

JavaScript

And conversely :

JavaScript

I use Typescript, but I think for that, there is no difference with the Javascript.

Thank’s in advance.

Jérémy.

Advertisement

Answer

JavaScript
User contributions licensed under: CC BY-SA
7 People found this is helpful
Advertisement