Value.Is
Determines whether a value is compatible with the specified type.
Syntax
Value.Is(
value as any,
type as type
) as logical
Remarks
Determines whether a value is compatible with the specified type. This is equivalent to the "is" operator in M, with the exception that it can accept identifier type references such as Number.Type.
Examples
Example #1
Compare two ways of determining if a number is compatible with type number.
Value.Is(123, Number.Type) = (123 is number)
Result:
true
Category
Values.Types