{"size": 727, "ext": "js", "max_stars_repo_path": "src/lib/field-accessor.js", "max_stars_repo_name": "littleark/es6_template", "max_stars_repo_stars_event_min_datetime": "2016-12-06T07:55:15.000Z", "max_stars_repo_stars_event_max_datetime": "2016-12-06T07:55:15.000Z", "max_issues_repo_path": "src/lib/field-accessor.js", "max_issues_repo_name": "littleark/es6_template", "max_issues_repo_issues_event_min_datetime": null, "max_issues_repo_issues_event_max_datetime": null, "max_forks_repo_path": "src/lib/field-accessor.js", "max_forks_repo_name": "littleark/es6_template", "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_forks_event_max_datetime": null}
{"max_stars_count": 1, "max_issues_count": null, "max_forks_count": null, "avg_line_length": 38.2631578947, "max_line_length": 98, "alphanum_fraction": 0.5502063274}
export default function ƒ(){
    var functions = arguments;
    //convert all string arguments into field accessors
    var i = 0, l = functions.length;
    while (i < l) {
        if (typeof(functions[i]) === 'string' || typeof(functions[i]) === 'number'){
            functions[i] = (function(str){ return function(d){ return d[str]; }; })(functions[i]);
        } else if (typeof(functions[i]) === 'object'){
            functions[i] = (function(map){ return function(d){ return map[d]; }; })(functions[i]);
        }
        i++;
    }
     //return composition of functions
    return function(d) {
        var i=0, l = functions.length;
        while (i++ < l) d = functions[i-1].call(this, d);
        return d;
    };
}