src/index.js
/**
   * Add a query param to the request
   * @param {string|Object} name Name of query param or object to add to query
   * @param {string} [value] If name is a string value, this will be the value of the query param
   * @returns {Snekfetch} This request
   */
Add a query param to the request
@param {string|Object} name Name of query param or object to add to query
@param {string} [value] If name is a string value, this will be the value of the query param
@returns {Snekfetch} This request
Add a query param to the request @param { string|Object } name Name of query param or object to add to query @param { string } [ value ] If name is a string value this will be the value of the query param @returns { Snekfetch } This request
query(name, value) {
    if (this.options.query === undefined) {
      this.options.query = {};
    }
    if (typeof name === 'object') {
      Object.assign(this.options.query, name);
    } else {
      this.options.query[name] = value;
    }
    return this;
  }
query ( name , value ) { if ( this . options . query === undefined ) { this . options . query = { } ; } if ( typeof name === 'object' ) { Object . assign ( this . options . query , name ) ; } else { this . options . query [ name ] = value ; } return this ; }
Add a query param to the request
 @param {string|Object} name Name of query param or object to add to query
 @param {string} [value] If name is a string value, this will be the value of the query param
 @returns {Snekfetch} This request
Add a query param to the request @param { string|Object } name Name of query param or object to add to query @param { string } [ value ] If name is a string value this will be the value of the query param @returns { Snekfetch } This request