Contact Free trial Login

typeOf

typeOf(T): Type<T>

Returns the type of an input value.

Parameters

Name Description

value

A string, object, array, number, or other supported type.

Example

This example identifies the type of the input string.

Source

%dw 2.0
output application/json
---
typeOf("A Text")

Output

"String"

Was this article helpful?

💙 Thanks for your feedback!

Edit on GitHub