Skip to content

title

Convert a string to title case

273 bytes

Usage

Formats the given string in title case fashion

import * as
import _
_
from 'radashi'
import _
_
.
function title(str: string | null | undefined): string
export title

Formats the given string in title case fashion.

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

@example

title('hello world') // => 'Hello World'
title('va_va_boom') // => 'Va Va Boom'
title('root-hook') // => 'Root Hook'
title('queryItems') // => 'Query Items'

@version12.1.0

title
('hello world') // => 'Hello World'
import _
_
.
function title(str: string | null | undefined): string
export title

Formats the given string in title case fashion.

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

@example

title('hello world') // => 'Hello World'
title('va_va_boom') // => 'Va Va Boom'
title('root-hook') // => 'Root Hook'
title('queryItems') // => 'Query Items'

@version12.1.0

title
('va_va_boom') // => 'Va Va Boom'
import _
_
.
function title(str: string | null | undefined): string
export title

Formats the given string in title case fashion.

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

@example

title('hello world') // => 'Hello World'
title('va_va_boom') // => 'Va Va Boom'
title('root-hook') // => 'Root Hook'
title('queryItems') // => 'Query Items'

@version12.1.0

title
('root-hook') // => 'Root Hook'
import _
_
.
function title(str: string | null | undefined): string
export title

Formats the given string in title case fashion.

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

@example

title('hello world') // => 'Hello World'
title('va_va_boom') // => 'Va Va Boom'
title('root-hook') // => 'Root Hook'
title('queryItems') // => 'Query Items'

@version12.1.0

title
('queryItems') // => 'Query Items'