Skip to content

fix(compat/drop): rename parameter n to itemsCount in docs and implementation - #1788

Merged
raon0211 merged 1 commit into
toss:mainfrom
Antoliny0919:update-drop-doc
Jun 23, 2026
Merged

raon0211 merged 1 commit into
toss:mainfrom
Antoliny0919:update-drop-doc

Conversation

@Antoliny0919

Copy link
Copy Markdown
Contributor

Summary

I've renamed it to itemsCount for consistency with dropRight.
I also changed the parameter name from collection to array. Since this function accepts an ArrayLike, array feels more semantically appropriate than collection.

@vercel

vercel Bot commented Jun 23, 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 Jun 23, 2026 7:09am

Request Review

@raon0211
raon0211 merged commit 3c6aa98 into toss:main Jun 23, 2026
10 checks passed

This branch was successfully deployed

1 active deployment
Preview — 95f66774 Deployed Jun 23, 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.

2 participants