index.js
function(request, parameters) {
	if (!parameters) {
		return;
	}

	var keys = Object.keys(parameters);
	var type = false;
	var value = null;
	var options = null;
	for (var i = keys.length - 1; i >= 0; i--) {
		value = parameters[keys[i]];
		options = null;

		if (value instanceof Object && value.type && value.hasOwnProperty('value')) {
			if (value.hasOwnProperty('options')) {
				options = value.options;
			}
			type = value.type;
			value = value.value;
		}
		else {
			type = exports.detectParameterType(value);
		}

		if (!(value instanceof Array)) {
			request.addParameter(keys[i], type, value, options);
			continue;
		}
	}
}
function(request, parameters) {
	if (!parameters) {
		return;
	}

	var keys = Object.keys(parameters);
	var type = false;
	var value = null;
	var options = null;
	for (var i = keys.length - 1; i >= 0; i--) {
		value = parameters[keys[i]];
		options = null;

		if (value instanceof Object && value.type && value.hasOwnProperty('value')) {
			if (value.hasOwnProperty('options')) {
				options = value.options;
			}
			type = value.type;
			value = value.value;
		}
		else {
			type = exports.detectParameterType(value);
		}

		if (!(value instanceof Array)) {
			request.addParameter(keys[i], type, value, options);
			continue;
		}
	}
}
function ( request , parameters ) { if ( ! parameters ) { return ; } var keys = Object . keys ( parameters ) ; var type = false ; var value = null ; var options = null ; for ( var i = keys . length - 1 ; i >= 0 ; i -- ) { value = parameters [ keys [ i ] ] ; options = null ; if ( value instanceof Object && value . type && value . hasOwnProperty ( 'value' ) ) { if ( value . hasOwnProperty ( 'options' ) ) { options = value . options ; } type = value . type ; value = value . value ; } else { type = exports . detectParameterType ( value ) ; } if ( ! ( value instanceof Array ) ) { request . addParameter ( keys [ i ] , type , value , options ) ; continue ; } } }
Tedious' Request object.

@external Tedious~Request
@see {@link http://pekim.github.io/tedious/api-request.html}
 
Add parameters to the request.

@private
@param {Tedious~Request} request
@param {namedParameters|positionalParameters} [parameters]
Tedious Request object .