%dw 2.0
output application/json
---
[ typeOf("A b"), typeOf([1,2]), typeOf(34), typeOf(true), typeOf({ a : 5 }) ]
typeOf
typeOf<T>(value: T): Type<T>
Returns the basic data type of a value.
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).