typeofEquals<T> function

bool typeofEquals<T>(
  1. Object? o,
  2. 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.

Implementation

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