UNPKG

es-toolkit

Version:

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

11 lines (8 loc) 227 B
import { toString } from '../util/toString.mjs'; function normalizeForCase(str) { if (typeof str !== 'string') { str = toString(str); } return str.replace(/['\u2019]/g, ''); } export { normalizeForCase };