GeezerVison is showing github.com — doc: add reference for `===` operator in assert.md · nodejs/node@10bdb59
File tree
Expand file treeCollapse file tree
Open diff view settings
Expand file treeCollapse file tree
Open diff view settings
Collapse file
Copy file name to clipboardExpand all lines: doc/api/assert.md +2-2Lines changed: 2 additions & 2 deletions - Display the source diff
- Display the rich diff
| Original file line number | Diff line number | Diff line change |
|---|
@@ -682,7 +682,7 @@ are recursively evaluated also by the following rules. |
682 | 682 | [`Object.is()`][]. |
683 | 683 | * [Type tags][Object.prototype.toString()] of objects should be the same. |
684 | 684 | * [`[[Prototype]]`][prototype-spec] of objects are compared using |
685 | | - the [Strict Equality Comparison][]. |
| 685 | + the [`===` operator][]. |
686 | 686 | * Only [enumerable "own" properties][] are considered. |
687 | 687 | * [`Error`][] names and messages are always compared, even if these are not |
688 | 688 | enumerable properties. |
@@ -2437,8 +2437,8 @@ argument. |
2437 | 2437 | [Object wrappers]: https://developer.mozilla.org/en-US/docs/Glossary/Primitive#Primitive_wrapper_objects_in_JavaScript |
2438 | 2438 | [Object.prototype.toString()]: https://tc39.github.io/ecma262/#sec-object.prototype.tostring |
2439 | 2439 | [SameValue Comparison]: https://tc39.github.io/ecma262/#sec-samevalue |
2440 | | -[Strict Equality Comparison]: https://tc39.github.io/ecma262/#sec-strict-equality-comparison |
2441 | 2440 | [`!=` operator]: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Operators/Inequality |
| 2441 | +[`===` operator]: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Operators/Strict_equality |
2442 | 2442 | [`==` operator]: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Operators/Equality |
2443 | 2443 | [`AssertionError`]: #class-assertassertionerror |
2444 | 2444 | [`CallTracker`]: #class-assertcalltracker |
|