swc/crates/swc_bundler/tests/.cache/deno/1947e42aaa95bc1bb5765186b1ca87d18a859e4c.ts

15 lines
290 B
TypeScript
Raw Normal View History

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