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.
the name to unprefix
the name without the prefix
import { unprefixName } from "@trashpanda001/helpers/string"unprefixName("The Odor")// "Odor"unprefixName("Theodore")// "Theodore" Copy
import { unprefixName } from "@trashpanda001/helpers/string"unprefixName("The Odor")// "Odor"unprefixName("Theodore")// "Theodore"
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.