src/utils/query.js
function arrayToStr(key, value) {
  if (isString(value) || isNumber(value)) return `${key}=${value}`;
  if (isString(value[0])) return `${key}=${value.join(':')}`;
  if (value && value.toString) return `${key}=${value.toString()}`;

  return value.map(val => arrayToStr(key, val));
}
function arrayToStr(key, value) {
  if (isString(value) || isNumber(value)) return `${key}=${value}`;
  if (isString(value[0])) return `${key}=${value.join(':')}`;
  if (value && value.toString) return `${key}=${value.toString()}`;

  return value.map(val => arrayToStr(key, val));
}
function arrayToStr ( key , value ) { if ( isString ( value ) || isNumber ( value ) ) return ` ${ key } ${ value } ` ; if ( isString ( value [ 0 ] ) ) return ` ${ key } ${ value . join ( ':' ) } ` ; if ( value && value . toString ) return ` ${ key } ${ value . toString ( ) } ` ; return value . map ( val => arrayToStr ( key , val ) ) ; }
Convert where parameter into a string notation for use in query name
@param  {String} key - Key to use
@param  {Array} value - Where config array
@return {String} String representing where settings for use in query name
Convert where parameter into a string notation for use in query name