Skip to content

decapitalize

Jason Godesky edited this page Jul 11, 2026 · 1 revision

decapitalize turns the first letter in a string to lower-case.

Parameters

orig: string

The string to decapitalize.

Returns

A new string with the first letter changed to lower-case.

Examples

import { capitalize } from '@revolutionarygamesco/common'

capitalize('The five boxing wizards jump quickly.') // the five boxing wizards jump quickly.

See also

Clone this wiki locally