Glossary Term
Object.is()
The Object.is() static method determines whether two values are the same value.
Object.is() determines whether two values are the same value. Two values are the same if one of the following holds:
both undefined both null both true or both false both strings of the same length with the same characters in the same order both the same object (meaning both values reference the same object in memory) both BigInts with the same numeric value both symbols that reference the same symbol value both numbers and both +0 both -0 both NaN or both non-zero, not NaN, and have the same value
Syntax example: Object.is(value1, value2)
Term Connections
Explore related terms connected by shared tags, shared categories, and relationship phrases. This map loads only when it comes into view.
Loading term connections…
