swc/crates/swc_bundler/tests/.cache/deno/36d9ffde34e1a40d3aa45ff5b72be9eeda6e5aec.ts
2021-11-09 20:42:49 +09:00

15 lines
297 B
TypeScript

// Loaded from https://deno.land/x/case@v2.1.0/upperFirstCase.ts
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);
}