io.js
function(data) {
            var paramArray = [],
                key, value;
        // TODO: use `object` module
            for (key in data) {
                value = data[key];
                key = ENCODE_URI_COMPONENT(key);
                paramArray.push((value === null) ? key : (key + '=' + ENCODE_URI_COMPONENT(value)));
            }
            console.log(NAME, '_toQueryString --> '+paramArray.join('&'));
            return paramArray.join('&');
        }
function(data) {
            var paramArray = [],
                key, value;
        // TODO: use `object` module
            for (key in data) {
                value = data[key];
                key = ENCODE_URI_COMPONENT(key);
                paramArray.push((value === null) ? key : (key + '=' + ENCODE_URI_COMPONENT(value)));
            }
            console.log(NAME, '_toQueryString --> '+paramArray.join('&'));
            return paramArray.join('&');
        }
function ( data ) { var paramArray = [ ] , key , value ; // TODO: use `object` module for ( key in data ) { value = data [ key ] ; key = ENCODE_URI_COMPONENT ( key ) ; paramArray . push ( ( value === null ) ? key : ( key + '=' + ENCODE_URI_COMPONENT ( value ) ) ) ; } console . log ( NAME , '_toQueryString --> ' + paramArray . join ( '&' ) ) ; return paramArray . join ( '&' ) ; }
Stringifies an object into one string with every pair separated by `&`

@method _toQueryString
@param data {Object} containing key-value pairs
@return {String} stringified presentation of the object, with every pair separated by `&`
@private
Stringifies an object into one string with every pair separated by &