Answers for "how to convert camal case into snake case by using function in javascript"

3

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 "how to convert camal case into snake case by using function in javascript"

Code answers related to "Javascript"

Browse Popular Code Answers by Language