Skip to content

feat: medianBigint: bigint support for median() - #1925

Open
hazrid93 wants to merge 1 commit into
toss:mainfrom
hazrid93:hazrid93/94_1588
Open

feat: medianBigint: bigint support for median()#1925
hazrid93 wants to merge 1 commit into
toss:mainfrom
hazrid93:hazrid93/94_1588

Conversation

@hazrid93

Copy link
Copy Markdown

Closes #1588.

Add medianBigint(nums: bigint[]): bigint: the middle value for odd length arrays; for even length, the truncated average (a + b) / 2n (bigint has no fractional type). Sorts using bigint comparison. Throws RangeError for an empty array (a bigint cannot represent NaN).

Closes toss#1588.

Add medianBigint(nums: bigint[]): bigint: the middle value for odd length arrays; for even length, the truncated average `(a + b) / 2n` (bigint has no fractional type). Sorts using bigint comparison. Throws RangeError for an empty array (a bigint cannot represent NaN).
@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 10:50am

Request Review

@Antoliny0919 Antoliny0919 left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I suspect these PRs were generated by AI. They add features, but none of them include documentation or tests. Also, many of the issues are already assigned to other contributors.

I'm not sure how the maintainers feel about AI generated PRs, but submitting PRs indiscriminately like this doesn't seem like a good approach.

I think it would be a good idea to read the contribution guidelines again.

++ If AI was used during the development process, it would also be a good idea to clearly mention that in the PR description or include it in the commit messages.

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.

Feature request: support bigint in median()

2 participants