code: function toCase(value, asCase) {
    if (isNotBlank(value)) {
      // Convert the given asCase argument to lowercase to facilitate matching
      const caseToUse = trimOrEmpty(asCase && asCase.toLowerCase ? asCase.toLowerCase() : asCase);
  
      // Convert the given stage into the requested case
      return caseToUse === 'lowercase' || caseToUse === 'lower' ? value.toLowerCase() :
        caseToUse === 'uppercase' || caseToUse === 'upper' ? value.toUpperCase() : value;
    }
    return value;
  }
docs: Converts the given value to uppercase, lowercase or keeps it as is according to the given asCase argument.
  @param value - the value to convert or keep as is
  @param {string} asCase - specifies whether to convert the value to uppercase (if 'uppercase' or 'upper') or to
  lowercase (if 'lowercase' or 'lower') or to keep it as provided (if 'as_is' or anything else)
  @return {string} the converted or given value