Skip to content

Conversation

@juanlet
Copy link

@juanlet juanlet commented Aug 26, 2025

  • Updated isNumber so it now returns false for NaN values—including boxed numbers—by explicitly checking that the numeric value equals itself

  • Revised isNaN to perform its own number check instead of calling isNumber, preserving correct behavior for NaN primitives and objects

  • Added unit tests covering the new NaN behavior and adjusted existing expectations to reflect the change

  • Tidied prototype-pollution tests by replacing bracket notation with dot notation to satisfy style guidelines

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

Labels

None yet

Development

Successfully merging this pull request may close these issues.

1 participant