you can use this solution:
String.prototype.toCamelCase = function(){_x000D_
return this.replace(/\s(\w)/ig, function(all, letter){return letter.toUpperCase();})_x000D_
.replace(/(^\w)/, function($1){return $1.toLowerCase()});_x000D_
};_x000D_
_x000D_
console.log('Equipment className'.toCamelCase());
_x000D_