const e=require(`./words-tWG2QPXb.cjs`),t=/[a-z]/u,n=!0;function r(e,t){return typeof e==`string`?i(e,t):t=>i(t,e)}const i=(n,{preserveConsecutiveUppercase:r=!0}={})=>e.t(t.test(n)?n:n.toLowerCase()).map(e=>`${e[0].toUpperCase()}${r?e.slice(1):e.slice(1).toLowerCase()}`).join(` `);exports.toTitleCase=r;
//# sourceMappingURL=toTitleCase.cjs.map