---
schema_version: "1"
id: f2ff7907fc3c728a7f62b733f66c632d747f7a91203c93819381a62671a582ec
title: isReferenceType
collection: mulesoft
version: current
locale: en-us
portal_url: https://docs.salesforce.com/mulesoft/current/en-us/dataweave/2.6/dw-types-functions-isreferencetype.md
canonical_url: https://docs.mulesoft.com/dataweave/2.6/dw-types-functions-isreferencetype
source_site: docs.mulesoft.com
content_type: documentation
content_hash: b041c96e4df5b2b31d5307f80a0f112fb303424f42f642977657cacfd01fa6b5
description: MuleSoft Documentation Site
release: "2.6"
latest: false
---
---
product: DataWeave
version: 2.6
---

# isReferenceType

> For the full documentation index, see: https://docs.mulesoft.com/llms.txt

## isReferenceType(t: Type): Boolean

Returns `true` if the input type is a Reference type.

_Introduced in DataWeave version 2.3.0._

### Parameters

<table><colgroup><col> <col></colgroup><thead><tr><th>Name</th><th>Description</th></tr></thead><tbody><tr><td><p><code>t</code></p></td><td><p>The type to check.</p></td></tr></tbody></table>

### Example

This example shows how `isReferenceType` behaves with different inputs.

#### Source

```DataWeave
%dw 2.0
output application/json
import * from dw::core::Types
 type AArray = Array<String> {n: 1}
 type AArray2 = Array<AArray>
 ---
 {
     a: isReferenceType( AArray),
     b: isReferenceType(arrayItem(AArray2)),
     c: isReferenceType(String)
 }
```

#### Output

```Json
{
  "a": false,
  "b": true,
  "c": false
}
```
