mrdocs::js::operator==
Compare two values for equality.
Description
This operator uses strict equality, meaning that the types must match exactly, and for objects and arrays the children must match exactly.
The == operator behaves differently for objects compared to primitive data types like numbers and strings. When comparing objects using ==, it checks for reference equality, not structural equality.
This means that two objects are considered equal with === only if they reference the exact same object in memory.
|
In JavaScript, this is equivalent to the |
Parameters
| Name | Description |
|---|---|
lhs |
The left operand |
rhs |
The right operand |
Created with MrDocs