mirror of
https://github.com/swc-project/swc.git
synced 2024-12-27 15:42:51 +03:00
bbaf619f63
swc_bundler: - [x] Fix wrapped esms. (denoland/deno#9307) - [x] Make test secure.
15 lines
297 B
TypeScript
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);
|
|
}
|