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

# isReferenceType

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

## isReferenceType(Type): Boolean

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

_Introduced in DataWeave 2.3.0. Supported by Mule 4.3 and later._

### Parameters

<table><colgroup><col> <col></colgroup><thead><tr><th>Name</th><th>Description</th></tr></thead><tbody><tr><td><p>t</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
}
```
