Signed-off-by: Alex A. Naanou <alex.nanou@gmail.com>
This commit is contained in:
Alex A. Naanou 2023-08-05 18:56:56 +03:00
parent 90bc2e6e5c
commit f62a7cf521

View File

@ -225,9 +225,10 @@
x == null // -> true
y == null // -> true
// Strict comparisons also work but unless explicitly required they
// should be avoided in favor of the non-strict and more flexible
// comparisons shown above:
// Strict comparisons also work but unless it explicitly required to
// differentiate between null and undefined (which is either a rare case
// or a sign of bad design) they should be avoided in favor of the
// non-strict and more flexible comparisons shown above:
x === null // -> true
y === undefined // -> true