Answers for "js camel case to snake case"

1

js camel case to snake case

var s1 = 'someTextHere';
var o1 = s1.split(/(?=[A-Z])/).join('_').toLowerCase();
Posted by: Guest on March-20-2020

Code answers related to "js camel case to snake case"

Code answers related to "Javascript"

Browse Popular Code Answers by Language