Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

W-12248935-typeOfClarification-duke #212

Open
wants to merge 1 commit into
base: v2.4
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 7 additions & 2 deletions modules/ROOT/pages/dw-core-functions-typeof.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -8,14 +8,19 @@ endif::[]
[[typeof1]]
== typeOf<T&#62;&#40;value: T&#41;: Type<T&#62;

Returns the type of a value.
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 https://docs.mulesoft.com/dataweave/latest/dw-types-functions-metadataof[metadataOf]).

=== Parameters

[%header, cols="1,3"]
|===
| Name | Description
| `value` | A string, object, array, number, or other supported type.
| `value` | Input value to evaluate.
|===

=== Example
Expand Down