Getting started Community Training Tutorials Documentation APIs, AI & Tools
%dw 2.0
output application/json
---
[ typeOf("A b"), typeOf([1,2]), typeOf(34), typeOf(true), typeOf({ a : 5 }) ]
You're viewing an older version of the documentation. You can switch to the latest version or use the version selector in the left navigation.
Returns the primitive data type of a value, such as String.
A value’s type is taken from its runtime representation and is never one of
the arithmetic types (intersection, union, Any, or Nothing) nor a type
alias. If present, metadata of a value is included in the result of
typeOf (see metadataOf).