{"size": 703, "ext": "js", "max_stars_repo_path": "src/toCase.js", "max_stars_repo_name": "aymannedaa/Case", "max_stars_repo_stars_event_min_datetime": "2015-01-02T03:32:13.000Z", "max_stars_repo_stars_event_max_datetime": "2022-03-17T22:42:33.000Z", "max_issues_repo_path": "src/toCase.js", "max_issues_repo_name": "aymannedaa/Case", "max_issues_repo_issues_event_min_datetime": "2015-01-27T17:32:14.000Z", "max_issues_repo_issues_event_max_datetime": "2020-06-20T16:59:26.000Z", "max_forks_repo_path": "src/toCase.js", "max_forks_repo_name": "aymannedaa/Case", "max_forks_repo_forks_event_min_datetime": "2015-01-19T23:43:08.000Z", "max_forks_repo_forks_event_max_datetime": "2021-12-11T05:09:04.000Z"}
{"max_stars_count": 174, "max_issues_count": 22, "max_forks_count": 18, "avg_line_length": 28.12, "max_line_length": 88, "alphanum_fraction": 0.5775248933}
/*
 * Copyright (c) 2013 ESHA Research
 * License under the MIT license.
 * 
 * Use at your own risk; this changes the behavior
 * of toUpperCase, toLowerCase and for-in loops on strings (which is itself a bad idea).
 */
(function(Case, _) {
    function create(type) {
        var fn = 'to'+_.cap(type)+'Case';
        String.prototype[fn] = function() {
            Array.prototype.unshift.call(arguments, this);
            return Case[type].apply(Case, arguments);
        };
    }
    for (var i=0,m=_.types.length; i<m; i++) {
        create(_.types[i]);
    }
    var _type = Case.type;
    Case.type = function(type, fn) {
        _type(type, fn);
        create(type);
    };
})(Case, Case._);
