mirror of
https://github.com/wassname/talk.git
synced 2026-07-06 05:17:19 +08:00
6 lines
152 B
TypeScript
6 lines
152 B
TypeScript
import { camelCase } from "lodash";
|
|
|
|
export default function pascalCase(value: string) {
|
|
return value[0].toUpperCase() + camelCase(value).slice(1);
|
|
}
|