lib/flash.js
function (type) {
      if (this.has(type)) {
        var messages = req.session[_session_key][type];
        delete req.session[_session_key][type];
      }
      return messages||[];
    }
function (type) {
      if (this.has(type)) {
        var messages = req.session[_session_key][type];
        delete req.session[_session_key][type];
      }
      return messages||[];
    }
function ( type ) { if ( this . has ( type ) ) { var messages = req . session [ _session_key ] [ type ] ; delete req . session [ _session_key ] [ type ] ; } return messages || [ ] ; }
Get a specific type of flash messages

@param  {string} type
@return {object}
Get a specific type of flash messages