%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)
}
isReferenceType
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.
Example
This example shows how isReferenceType
behaves with different inputs.