ObjectEquals()
compares simply and complex objects for equality, attention string comparison is case sensitive
ObjectEquals( left=any, right=any );
Returns: Boolean
Argument | Description |
---|---|
left
any,
required
|
left operand Alias: param1, clientObject |
right
any,
required
|
right operant Alias: param2, originalObject |
Examples
object1 = { id: 1, name: 'Lucee' };
object2 = { id: 1, name: 'Lucee' };
object3 = { id: 1, name: 'Lucee', type: "language" };
dump(ObjectEquals(left = object1, right = object2)); // true
dump(ObjectEquals(left = object1, right = object3)); // false
See also
- Objects
- Decision logic
- ObjectSave()
- Search Issue Tracker
- Search Lucee Test Cases (good for further, detailed examples)