Skip to content

Conversation

@screendriver
Copy link

sample() returns undefined when an empty array is given. This should also be reflected in the return type.

@vercel
Copy link

vercel bot commented Aug 8, 2025

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

Project Deployment Preview Comments Updated (UTC)
es-toolkit Ready Ready Preview Comment Aug 17, 2025 10:45am

Copy link
Collaborator

@dayongkr dayongkr left a comment

Choose a reason for hiding this comment

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

Looks good to me! Thanks for your contribution!

@screendriver
Copy link
Author

Unfortunately I cannot merge because the deno CI job is pending and required.

@dayongkr
Copy link
Collaborator

Since this involves a change to the interface, I haven’t merged it yet because I’d like to hear other maintainer’ opinion. I’ll leave another comment later this week.

@screendriver
Copy link
Author

I’ll leave another comment later this week

Since this is almost 3 months ago I just wanted to ask kindly if we can merge it @dayongkr ?

@dayongkr
Copy link
Collaborator

dayongkr commented Nov 5, 2025

Ah, this was put on hold per previous discussion with maintainers. Let me sync up and update.

@dayongkr
Copy link
Collaborator

After thinking about it more, I think this needs to be addressed in the next major update, so I'll discuss internally about the timing of the next major release.

Sorry for making you wait so long.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants