Skip to content

feat: capitalCase (Start Case) - #1909

Open
hazrid93 wants to merge 1 commit into
toss:mainfrom
hazrid93:hazrid93/35_306
Open

feat: capitalCase (Start Case)#1909
hazrid93 wants to merge 1 commit into
toss:mainfrom
hazrid93:hazrid93/35_306

Conversation

@hazrid93

Copy link
Copy Markdown

Closes #306.

Add capitalCase(str) that capitalises the first letter of each word and lower cases the rest, joining words with a single space: "hello world" to "Hello World", "camelCase" to "Camel Case", "hyphen text" to "Hyphen Text". Distinct from capitalize (which only capitalises the first letter of the whole string). Reuses the existing words and capitalize helpers.

@vercel

vercel Bot commented Jul 20, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
es-toolkit Ready Ready Preview, Comment Jul 20, 2026 11:12am

Request Review

Closes toss#306.

Add capitalCase(str) that capitalises the first letter of each word and lower cases the rest, joining words with a single space: "hello world" to "Hello World", "camelCase" to "Camel Case", "hyphen text" to "Hyphen Text". Distinct from capitalize (which only capitalises the first letter of the whole string). Reuses the existing words and capitalize helpers.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Support for capitalCase

1 participant