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