lib/virgilio-http.js
function paramsFromRegexPath(paramsObj) {
        var paramNames = Object.keys(paramsObj);
        var params = paramNames.reduce(function(params, paramName) {
            if ((/^\d+$/).test(paramName)) {
                params.push(paramsObj[paramName]);
            }
            return params;
        }, []);
        return params;
    }
function paramsFromRegexPath(paramsObj) {
        var paramNames = Object.keys(paramsObj);
        var params = paramNames.reduce(function(params, paramName) {
            if ((/^\d+$/).test(paramName)) {
                params.push(paramsObj[paramName]);
            }
            return params;
        }, []);
        return params;
    }
function paramsFromRegexPath ( paramsObj ) { var paramNames = Object . keys ( paramsObj ) ; var params = paramNames . reduce ( function ( params , paramName ) { if ( ( / ^\d+$ / ) . test ( paramName ) ) { params . push ( paramsObj [ paramName ] ) ; } return params ; } , [ ] ) ; return params ; }
Given a certain paramsObj resulting from a regex path, create an array of parameters. Note that in this instance `req.params` is an object with numerical properties for the regex matches.
Given a certain paramsObj resulting from a regex path create an array of parameters . Note that in this instance req . params is an object with numerical properties for the regex matches .