areObjRefsEqual()
Home > @gooddata/sdk-model > areObjRefsEqual
areObjRefsEqual() function
Returns a value indicating whether the two ObjRef instances are semantically equal (i.e. are of the same type and have the same value). Null and undefined are considered equal to each other.
Signature:
export declare function areObjRefsEqual<T extends ObjRefInScope | null | undefined>(a: T, b: T): boolean;
Parameters
Parameter | Type | Description |
---|---|---|
a | T | |
b | T |
Returns:
boolean
Remarks
If the objects are ObjRefs of multiple types at once (for example they have identifiers and URIs), the match is tested in the following sequence: 1. identifier 2. URI 3. localIdentifier