Skip to content

capitalize

Capitalize the first letter of the string.

Added in v0.0.1

Usage

ts
import { capitalize } from 'parsnip-kit'

capitalize('HelloWorld') // 'Helloworld'

API

Arguments

ArgTypeOptionalDefaultDescription
arganyfalseundefinedThe string to be converted.

Returns

Type
string