Function removeOrdinalSuffix

Remove Ordinal suffix in words

removeOrdinalSuffix

removeOrdinalSuffix("سه هزارم") // سه هزار
removeOrdinalSuffix("سه هزارمین") // سه هزار
  • Parameters

    • word: string

      String that includes ordinal suffix

    Returns string

    A string of words that not includes Ordinal strings