Skip to content

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

Description

@yrambler2001
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

Activity

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions