Files

7 lines
520 B
Markdown
Raw Permalink Normal View History

2026-06-12 11:06:50 +02:00
# SameValue
SameValue is the equality algorithm used by `Object.is()`. It is the strictest equality comparison in JavaScript: it returns `true` only when two values are identical, treating `NaN` as equal to `NaN` and `+0` as not equal to `-0`. It is used in a few specific internal operations.
2023-01-02 04:47:46 +04:00
Visit the following resources to learn more:
2026-06-12 11:06:50 +02:00
- [@article@Same-value equality using Object.is()](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Equality_comparisons_and_sameness#same-value_equality_using_object.is)