> Documentation index: https://www.gooddata.ai/docs/gooddata-ui/llms.txt lists every page of these docs as Markdown.

# areObjRefsEqual()

- Package: [@gooddata/sdk-model](https://www.gooddata.ai/docs/gooddata-ui/latest/api-reference/sdk-model/index.md)
- Kind: function
- Source: https://github.com/gooddata/gooddata-ui-sdk/blob/rel/11.64/libs/sdk-model/src/objRef/index.ts
- Guides: [Working with object references](https://www.gooddata.ai/docs/gooddata-ui/latest/data-layer/data-model/object-references/index.md)

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:**

```typescript
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
