Determines the RuntimeType of a variable. This is similar to the built-in typeof operator except in the following ways:
typeof
array
null
object
import {getRuntimeType} from '@augment-vir/assert';getRuntimeType(['a']); // RuntimeType.ArraygetRuntimeType({a: 'a'}); // RuntimeType.Object Copy
import {getRuntimeType} from '@augment-vir/assert';getRuntimeType(['a']); // RuntimeType.ArraygetRuntimeType({a: 'a'}); // RuntimeType.Object
@augment-vir/assert
Determines the RuntimeType of a variable. This is similar to the built-in
typeof
operator except in the following ways:array
andnull
, thattypeof
does not have, which are both distinct fromobject
.