String.prototype.toCamelCase = function()

in functions/source/lambda-self-signed-certificate/index.js [13:18]


    String.prototype.toCamelCase = function() {
        return this.replace(/^([A-Z])|\s(\w)/g, function(match, p1, p2, offset) {
            if (p2) return p2.toUpperCase();
            return p1.toLowerCase();        
        });
    };