Function trimArraySuffixes

  • Trims specific suffixes from the input string if present. The suffixes targeted for removal are 'Array', 'Arr', 'List', and 's'.

    Parameters

    • text: string

      The input string to process and trim suffixes from.

    Returns string

    The modified string with the suffix removed, or the original string if no suffix was found.