Case JS Camel To Snake Case

var s1 = 'someTextHere';
var o1 = s1.split(/(?=[A-Z])/).join('_').toLowerCase();
gaz_edge