lib/query.js
function decodeValue(value) {
  value = decodeURIComponent(value);

  if (value === "") return value;
  if (!isNaN(value)) return parseFloat(value);
  if (isBolean(value)) return value === 'true';
  if (isISODateString(value)) return new Date(value);

  return value;
}
function decodeValue(value) {
  value = decodeURIComponent(value);

  if (value === "") return value;
  if (!isNaN(value)) return parseFloat(value);
  if (isBolean(value)) return value === 'true';
  if (isISODateString(value)) return new Date(value);

  return value;
}
function decodeValue ( value ) { value = decodeURIComponent ( value ) ; if ( value === "" ) return value ; if ( ! isNaN ( value ) ) return parseFloat ( value ) ; if ( isBolean ( value ) ) return value === 'true' ; if ( isISODateString ( value ) ) return new Date ( value ) ; return value ; }
This method returns typed value from string
This method returns typed value from string