analytics.js
function toCamelCase (string) {
  return toSpace(string).replace(/\s(\w)/g, function (matches, letter) {
    return letter.toUpperCase();
  });
}
function toCamelCase (string) {
  return toSpace(string).replace(/\s(\w)/g, function (matches, letter) {
    return letter.toUpperCase();
  });
}
function toCamelCase ( string ) { return toSpace ( string ) . replace ( / \s(\w) / g , function ( matches , letter ) { return letter . toUpperCase ( ) ; } ) ; }
Convert a `string` to camel case.

@param {String} string
@return {String}
Convert a string to camel case .