params(path, captures, params = {}) {
    for (let len = captures.length, i = 0; i < len; i++) {
      if (this.paramNames[i]) {
        const c = captures[i];
        if (c && c.length > 0)
          params[this.paramNames[i].name] = c ? safeDecodeURIComponent(c) : c;
      }
    }

    return params;
  }
Returns map of URL parameters for given `path` and `paramNames`.

@param {String} path
@param {Array.<String>} captures
@param {Object=} params
@returns {Object}
@private