Skip to content

docs[lowerFirst]: fix JSDoc examples calling lowerCase instead of lowerFirst - #2132

Open
minseonkkim wants to merge 1 commit into
toss:mainfrom
minseonkkim:docs/fix-jsdoc-examples
Open

minseonkkim wants to merge 1 commit into
toss:mainfrom
minseonkkim:docs/fix-jsdoc-examples

Conversation

@minseonkkim

@minseonkkim minseonkkim commented Oct 4, 2026 •

Copy link
Copy Markdown
Contributor

Summary

The JSDoc examples for lowerFirst call lowerCase instead of lowerFirst.

Because of this, the examples don't match their own comments. For example, lowerCase('FRED') returns 'fred', but the comment says 'fRED' (which is the correct result for lowerFirst).

This was previously fixed in #1324, but that PR only updated docs/ja/reference/string/lowerFirst.md. The JSDoc in the source files was left unchanged.

Changes

  • src/string/lowerFirst.ts: replace lowerCase with lowerFirst in the three JSDoc examples
  • src/compat/string/lowerFirst.ts: same change
  • The expected results in the comments were already correct for lowerFirst, so they are unchanged
  • The markdown docs in all four languages are already correct, so no changes were needed there

@vercel

vercel Bot commented Oct 4, 2026 •

Copy link
Copy Markdown

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

Project Deployment Actions Updated
es-toolkit Error Error Oct 4, 2026 5:33am UTC

Request Review

This branch had an error being deployed

1 failed deployment
Preview — 5d588b4a Deployed Oct 4, 2026 by vercel[bot]
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.

1 participant