Skip to main content

core.deepequals

Home > @medplum/core > deepEquals

deepEquals() function

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

Signature:

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

Parameters

ParameterTypeDescription
object1unknownThe first object.
object2unknownThe second object.
pathstring(Optional) Optional path string.

Returns:

boolean

True if the objects are equal.