core.deepequals | Medplum

deepEquals() function

Resource equality. Ignores meta.versionId and meta.lastUpdated.

Signature:

export declare function deepEquals(object1: unknown, object2: unknown, path?: string): boolean;

Parameters [​](/content/docs/sdk/core.deepequals#parameters "Direct link to Parameters"/index.html)

Parameter Type Description
object1 unknown The first object.
object2 unknown The second object.
path string (Optional) Optional path string.

Returns:

boolean

True if the objects are equal.