Skip to content

pascal

Convert a string to pascal case

201 bytes

Usage

Formats the given string in pascal case fashion.

import * as
import _
_
from 'radashi'
const
const hw: string
hw
=
import _
_
.
function pascal(str: string): string
export pascal

Formats the given string in pascal case fashion.

@seehttps://radashi.js.org/reference/string/pascal

@example

pascal('hello world') // => 'HelloWorld'
pascal('va va boom') // => 'VaVaBoom'
pascal('helloWorld') // => 'HelloWorld'

@version12.1.0

pascal
('hello world') // => 'HelloWorld'
const
const vvb: string
vvb
=
import _
_
.
function pascal(str: string): string
export pascal

Formats the given string in pascal case fashion.

@seehttps://radashi.js.org/reference/string/pascal

@example

pascal('hello world') // => 'HelloWorld'
pascal('va va boom') // => 'VaVaBoom'
pascal('helloWorld') // => 'HelloWorld'

@version12.1.0

pascal
('va va boom') // => 'VaVaBoom'
const
const h2: string
h2
=
import _
_
.
function pascal(str: string): string
export pascal

Formats the given string in pascal case fashion.

@seehttps://radashi.js.org/reference/string/pascal

@example

pascal('hello world') // => 'HelloWorld'
pascal('va va boom') // => 'VaVaBoom'
pascal('helloWorld') // => 'HelloWorld'

@version12.1.0

pascal
('helloWorld') // => 'HelloWorld'