@trashpanda001/helpers
    Preparing search index...

    Function unprefixName

    • Removes common stop word determiners from the beginning of a name: the, a, an.

      This is typically done for a more natural sort order, for example "The Beatles" would be changed to "Beatles" and sorted with other bands beginning with the letter B.

      Parameters

      • name: string

        the name to unprefix

      Returns string

      the name without the prefix

      import { unprefixName } from "@trashpanda001/helpers/string"

      unprefixName("The Odor")
      // "Odor"
      unprefixName("Theodore")
      // "Theodore"