lib/utility/string.js
function camelToSnake( string ) {
	return string.replace( ptnCamel, ( all, predecessor, match ) => predecessor + "_" + match.toLocaleLowerCase() );
}
function camelToSnake( string ) {
	return string.replace( ptnCamel, ( all, predecessor, match ) => predecessor + "_" + match.toLocaleLowerCase() );
}
function camelToSnake ( string ) { return string . replace ( ptnCamel , ( all , predecessor , match ) => predecessor + "_" + match . toLocaleLowerCase ( ) ) ; }
Converts string from camelCase to snake_case.

@param {string} string string to convert
@returns {string} converted string
Converts string from camelCase to snake_case .