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

Sprite.prototype.toNumber(value, true) - strict cast to number #203

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

towerofnix
Copy link
Member

Supporting PR for leopard-js/sb-edit#149 or leopard-js/sb-edit#150.

Note during code review - Number.isNaN checks if its paremeter is literally the value NaN. isNaN checks if it's NaN or it's not a number primitive at all. We've removed a usage of isNaN, though there's no effective difference for the actual predicate value of that condition, since it used to be behind a typeof value === "number" check anyway.

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

Successfully merging this pull request may close these issues.

3 participants