swc/bundler/tests/.cache/deno/ccfb1d05d24a281ab8bbde0886902ee1f2bdc37a.ts
강동윤 bbaf619f63
fix(bundler): Fix bugs (#1437)
swc_bundler:
 - [x] Fix wrapped esms. (denoland/deno#9307)
 - [x] Make test secure.
2021-03-02 17:33:03 +09:00

15 lines
290 B
TypeScript

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