Skip to content
New issue

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

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

Already on GitHub? Sign in to your account

Set's implementation is not rigorous. #148

Open
reactjser opened this issue Sep 20, 2019 · 0 comments
Open

Set's implementation is not rigorous. #148

reactjser opened this issue Sep 20, 2019 · 0 comments

Comments

@reactjser
Copy link

@reactjser reactjser commented Sep 20, 2019

class Set {
   ...
}

const s = new Set()
s.add(1)
s.add('1')
console.log(s.size()); // 1
console.log(s.values()); // 1

The 1 is not same as '1'.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
1 participant