@lucide/helpers
Version:
A internal used package with helpers.
14 lines (11 loc) • 313 B
JavaScript
import { toCamelCase } from './toCamelCase.mjs';
/**
* Converts string to PascalCase
*
* @param {string} string
* @returns {string} A pascalized string
*/
export const toPascalCase = (string) => {
const camelCase = toCamelCase(string);
return camelCase.charAt(0).toUpperCase() + camelCase.slice(1);
};