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

Question: Duplicate NaN check ? #3466

Closed
yuxino opened this issue Nov 2, 2017 · 3 comments
Closed

Question: Duplicate NaN check ? #3466

yuxino opened this issue Nov 2, 2017 · 3 comments

Comments

@yuxino
Copy link
Contributor

yuxino commented Nov 2, 2017

toFinite method has been checked NaN. Why checked again in toInteger last line ...

return result === result ? (remainder ? result - remainder : result) : 0

return value === value ? value : 0

@jdalton
Copy link
Member

jdalton commented Nov 2, 2017

@Nbsaw would you like submit a PR to remove the extra check?

@yuxino
Copy link
Contributor Author

yuxino commented Nov 2, 2017

@jdalton of course !

@lock
Copy link

lock bot commented Dec 26, 2018

This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

@lock lock bot locked as resolved and limited conversation to collaborators Dec 26, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.