lib/ConnectSequence.js
function isErrorHandler (cb) {
  var str = cb.toString()
  var args = str.split('(')[1].split(')')[0].split(',')
  return args.length === 4
}
function isErrorHandler (cb) {
  var str = cb.toString()
  var args = str.split('(')[1].split(')')[0].split(',')
  return args.length === 4
}
function isErrorHandler ( cb ) { var str = cb . toString ( ) var args = str . split ( '(' ) [ 1 ] . split ( ')' ) [ 0 ] . split ( ',' ) return args . length === 4 }
Tells if a given middleware is a regular middleware or an error handler
@function
@inner
@private
@param {Function} middleware
@returns {Boolean}
Tells if a given middleware is a regular middleware or an error handler