Skip to main content
Module

x/case/upperFirstCase.ts

Convert strings between camelCase, PascalCase, Title Case, snake_case and more
Go to Latest
File
import upperCase from "./upperCase.ts";
export default function (str: string, locale?: string): string { if (str == null) { return ""; }
str = String(str);
return upperCase(str.charAt(0), locale) + str.substr(1);}