Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

mode is returning an Array instead of Set if count of modes is same as count of numbers in the parameter passed to mode. #16

Open
yrambler2001 opened this issue Jan 31, 2025 · 0 comments · May be fixed by #17

Comments

@yrambler2001
Copy link

Image Image

https://codesandbox.io/p/sandbox/jr25j2?file=%2Fsrc%2FApp.tsx%3A10%2C82

Sample cases when the expected result is Set, but the function returns Array.

mode([1, 2])
mode([1, 2, 3, 4])

there on line 88, a Set should be returned

Image
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
1 participant