index.js
function matchesMethod(method, opts) {
  var methods = !opts.method || Array.isArray(opts.method) ?
    opts.method : [opts.method];

  if (methods) {
    return !!~methods.indexOf(method);
  }
}
function matchesMethod(method, opts) {
  var methods = !opts.method || Array.isArray(opts.method) ?
    opts.method : [opts.method];

  if (methods) {
    return !!~methods.indexOf(method);
  }
}
function matchesMethod ( method , opts ) { var methods = ! opts . method || Array . isArray ( opts . method ) ? opts . method : [ opts . method ] ; if ( methods ) { return ! ! ~ methods . indexOf ( method ) ; } }
Returns boolean indicating whether the request method matches the configured methods.

@param requestedUrl - url requested by user
@param opts - unless configuration
@returns {boolean}
Returns boolean indicating whether the request method matches the configured methods .