β Xah Code
JS: Test Equality
By Xah Lee. Date:
2014-07-11
. Last updated:
2023-10-09
.
Double Equal Operator
Double Equal Operator
Triple Equal Operator
Triple Equal Operator
Test Equality of Array/Object
Test Object Equality π
Test Equality of NaN
To compare
NaN
, use:
Object.is
Number.isNaN
Test Equality of Infinity
Number.isFinite
JavaScript, Boolean
JS: Boolean: true, false
JS: Test Equality
JS: Double Equal Operator
JS: Triple Equal Operator
JS: Test Object Equality π
JS: Boolean Object
JS: Boolean Constructor
JS: Boolean.prototype
JavaScript, Operators
JS: Math Operators
JS: Assignment Operators
JS: Boolean Operators
JS: Number Comparison Operators
JS: Boolean: true, false
JS: Test Equality
JS: Nullish Coalescing Operator
JS: Bitwise Operators
Search π
HTML
CSS
JS
JS Ref
DOM
SVG
JavaScript in Depth
Basic Syntax
Run JavaScript
Comment
Print
Quote String
Number
Operators
Boolean
Test Equality
Conditional
Loop
Array Tutorial
Object Tutorial
Value Types
Value Types
Primitive Value
typeof Operator
Variable
let π
const π
var π
Destructure Assignment π
String
String Overview
Template String π
String Code Unit
Property
Property Overview
Property Key
Dot vs Bracket Notation
Create Property
Get Set Property
Property Existence
Access Property
List Properties
for-in Loop
Property Attributes
Getter, Setter
Property Descriptor
Symbol
Object and Inheritance
Object Overview
Object Type
Find Object's Type
Prototype and Inheritance
Prototype Chain
in Prototype Chain?
Get Set Parent
Show Parent Chain π
Create Object
Object Literal Expr
Create Object + Parent
Prevent Adding Property
Clone Object π
Test Object Equality π
Add Method to Prototype
Array
Array Overview
Create Array
Sparse Array
Array-Like Object
Array Equality
Array How-To
Function
Define Function
Arrow Function π
Function Params
arguments Object
Rest Params π
Arg Default Value π
Arg Destructure π
f Declaration vs Expr
Closure
f call apply bind
Functional Programing
Pipe Functions π
Constructor, Class
this Binding
What is Constructor
Property Key "prototype"
Operator βnewβ
Operator βinstanceofβ
Property Key "constructor"
Class π
Keyword βextendsβ π
Keyword βsuperβ π
Iterable π
Interface
Iterable
Iterator
Iterator Prototype
for-of Loop
Spread Operator
Generator
Generator Function
Misc
Regular Expression
Date
Set π
Map π
Import π
Export π
Promise π
Proxy π
Convert String, Number
Try Catch Throw Finally
JS2015 Features
JS2016 to JS2020
How to Convert to JS2015
Style Guide
Semicolon
Exclamation Before Function
Strict Mode
x.y.z Associativity
Timing JS Code
Allowed Characters in Identifier
Source Code Encoding