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

@param {string} string string to convert
@returns {string} converted string
Converts string from camelCase to kebab - case .