UNPKG

es-toolkit

Version:

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

15 lines (10 loc) 341 B
'use strict'; Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' }); const toString = require('../util/toString.js'); function normalizeForCase(str) { if (typeof str !== 'string') { str = toString.toString(str); } return str.replace(/['\u2019]/g, ''); } exports.normalizeForCase = normalizeForCase;