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

15 lines
297 B
TypeScript

// Loaded from https://deno.land/x/case@v2.1.0/lowerFirstCase.ts
import lowerCase from "./lowerCase.ts";
export default function (str: string, locale?: string): string {
if (str == null) {
return "";
}
str = String(str);
return lowerCase(str.charAt(0), locale) + str.substr(1);
}