lib/lupusasync.js
/**
   * Converts a string to string or to a number 
   * @param {*} value - string or number
   */
Converts a string to string or to a number
@param {*} value - string or number
Converts a string to string or to a number @param { * } value - string or number
convStringNumber(value) {
    let oldvalue = value;
    switch (typeof value) {
      case 'string':
        if (value === 'true') { value = true; }
        else if (value === 'false') { value = false; }
        else if (!isNaN(value)) {
          value = parseFloat(value);
          if (isNaN(value)) value = oldvalue;
        }
        break;
      default:
        break;
    }
    return value;
  }
convStringNumber ( value ) { let oldvalue = value ; switch ( typeof value ) { case 'string' : if ( value === 'true' ) { value = true ; } else if ( value === 'false' ) { value = false ; } else if ( ! isNaN ( value ) ) { value = parseFloat ( value ) ; if ( isNaN ( value ) ) value = oldvalue ; } break ; default : break ; } return value ; }
Converts a string to string or to a number
 @param {*} value - string or number
Converts a string to string or to a number @param { * } value - string or number
// else if (!isNaN(value) && value !== '') { value = parseFloat(value); }