src/index.js
/**
	 * Looks up the value of a field within a request; this method checks in order the body, query, and headers of a
	 * request until the value is found
	 * @param {Object} req = HTTP request object
	 * @param {string} field - lookup field
	 * @return {string | boolean} lookup value for field within the body, query, or headers of the request
	 */
Looks up the value of a field within a request; this method checks in order the body, query, and headers of a
request until the value is found
@param {Object} req = HTTP request object
@param {string} field - lookup field
@return {string | boolean} lookup value for field within the body, query, or headers of the request
Looks up the value of a field within a request ; this method checks in order the body query and headers of a request until the value is found @param { Object } req = HTTP request object @param { string } field - lookup field @return { string | boolean } lookup value for field within the body query or headers of the request
lookup(req, field) {
		let result;
		this._lookups.find((lookup) => {
			const fields = req[lookup];
			result = lookup === 'headers'
				? this.constructor.headerLookup(req, field)
				: !!fields && typeof fields === 'object' && fields[field];
			return result;
		});
		return result;
	}
lookup ( req , field ) { let result ; this . _lookups . find ( ( lookup ) => { const fields = req [ lookup ] ; result = lookup === 'headers' ? this . constructor . headerLookup ( req , field ) : ! ! fields && typeof fields === 'object' && fields [ field ] ; return result ; } ) ; return result ; }
Looks up the value of a field within a request; this method checks in order the body, query, and headers of a
 request until the value is found
 @param {Object} req = HTTP request object
 @param {string} field - lookup field
 @return {string | boolean} lookup value for field within the body, query, or headers of the request
Looks up the value of a field within a request ; this method checks in order the body query and headers of a request until the value is found @param { Object } req = HTTP request object @param { string } field - lookup field @return { string | boolean } lookup value for field within the body query or headers of the request