UNPKG

es-toolkit

Version:

A state-of-the-art, high-performance JavaScript utility library with a small bundle size and strong type annotations.

9 lines (8 loc) 267 B
import { toString } from "../util/toString.mjs"; //#region src/compat/_internal/normalizeForCase.ts function normalizeForCase(str) { if (typeof str !== "string") str = toString(str); return str.replace(/['\u2019]/g, ""); } //#endregion export { normalizeForCase };