Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

js camel case to snake case

var s1 = 'someTextHere';
var o1 = s1.split(/(?=[A-Z])/).join('_').toLowerCase();
 
PREVIOUS NEXT
Tagged: #js #camel #case #snake #case
ADD COMMENT
Topic
Name
3+7 =