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

【P141】判断条件 #201

Open
idonteatcookie opened this issue Jan 30, 2023 · 1 comment
Open

【P141】判断条件 #201

idonteatcookie opened this issue Jan 30, 2023 · 1 comment

Comments

@idonteatcookie
Copy link

image

else if (oldValue !== value || (oldValue === oldValue && value === value))

应该是下面的判断条件吧

else if (oldValue !== value && (oldValue === oldValue || value === value))
@weiliang-Zhang
Copy link

刚看到这里,我也感觉这个地方应该是 (oldValue !== value && (oldValue === oldValue || value === value)),这里应当和 5.4 小节中的逻辑一致,是为了排除 NaN 的干扰

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

No branches or pull requests

2 participants