Removes a prefix from a string.
the string to unprefix
the prefix to remove
the string without the prefix
import { unprefix } from "@trashpanda001/helpers/string"unprefix("The Beatles", "The ")// "Beatles"unprefix("The Beatles", /^(the|a|an) /i)// "Beatles" Copy
import { unprefix } from "@trashpanda001/helpers/string"unprefix("The Beatles", "The ")// "Beatles"unprefix("The Beatles", /^(the|a|an) /i)// "Beatles"
Removes a prefix from a string.