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

14 lines
348 B
TypeScript

// Loaded from https://deno.land/x/case/titleCase.ts
import upperCase from "./upperCase.ts";
import normalCase from "./normalCase.ts";
export default function titleCase(value: string, locale?: string): string {
return normalCase(value, locale).replace(/^.| ./g, function (
m: string,
): string {
return upperCase(m, locale);
});
}