1 // Matches dashed string for camelizing
2 var rdashAlpha = /-([a-z])/g;
4 // Used by camelCase as callback to replace()
5 function fcamelCase( _all, letter ) {
6 return letter.toUpperCase();
9 // Convert dashed to camelCase
10 export function camelCase( string ) {
11 return string.replace( rdashAlpha, fcamelCase );