Skip to content

pascalCase

Convert a string to PascalCase.

Usage

ts
import { pascalCase } from 'rattail'

pascalCase('hello-world') // return 'HelloWorld'
pascalCase('fooBar') // return 'FooBar'

Arguments

ArgTypeDefaults
valuestring

Return

Type
string