lib/ConnectSequence.js
function append (/* mid_0, ..., mid_n */) {
  var i
  for (i = 0; i < arguments.length; i++) {
    if (typeof arguments[i] !== 'function') {
      var type = typeof arguments[i]
      var errMsg = 'Given middlewares must be functions. "' + type + '" given.'
      throw new TypeError(errMsg)
    }
  }
  for (i = 0; i < arguments.length; i++) {
    this.middlewares.push(arguments[i])
  }
  return this
}
function append (/* mid_0, ..., mid_n */) {
  var i
  for (i = 0; i < arguments.length; i++) {
    if (typeof arguments[i] !== 'function') {
      var type = typeof arguments[i]
      var errMsg = 'Given middlewares must be functions. "' + type + '" given.'
      throw new TypeError(errMsg)
    }
  }
  for (i = 0; i < arguments.length; i++) {
    this.middlewares.push(arguments[i])
  }
  return this
}
function append ( /* mid_0, ..., mid_n */ ) { var i for ( i = 0 ; i < arguments . length ; i ++ ) { if ( typeof arguments [ i ] !== 'function' ) { var type = typeof arguments [ i ] var errMsg = 'Given middlewares must be functions. "' + type + '" given.' throw new TypeError ( errMsg ) } } for ( i = 0 ; i < arguments . length ; i ++ ) { this . middlewares . push ( arguments [ i ] ) } return this }
Append an arbitrary number of middlewares as an argument list
@method
@memberof ConnectSequence.prototype
@param {...Function} middlewares A list of middleware functions (or errorHandler middlewares)
@returns {ConnectSequence} a reference to the instance to be chainable
@throws TypeError if one of the given middlewares is not a function. All the given middlewares would be rejected.
Append an arbitrary number of middlewares as an argument list