typeofEquals<T> function
Perform JavaScript typeof
operator on the given object and determine if
the result is equal to the given type. Exposes the whole typeof
equal
expression to maximize browser optimization.
Implementation
external bool typeofEquals<T>(Object? o, String type);