UNPKG

sikits

Version:

A powerful and comprehensive utility library for JavaScript and TypeScript with 100+ functions for strings, numbers, arrays, and objects

6 lines (5 loc) 253 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.pascalCase = void 0; const pascalCase = (str) => str.replace(/(?:^|\s)([a-z])/g, (_, char) => char.toUpperCase()).replace(/\s+/g, ""); exports.pascalCase = pascalCase;