Skip to content

typeofEquals<T>

bool typeofEquals<T>(Object? o, String type)

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.