dart / 2 / dart-js_util / instanceof.html

instanceof function

bool instanceof(
  1. Object? o,
  2. Object type
)

Check whether o is an instance of type.

The value in type is expected to be a JS-interop object that represents a valid JavaScript constructor function.

Implementation

external bool instanceof(Object? o, Object type);

© 2012 the Dart project authors
Licensed under the BSD 3-Clause "New" or "Revised" License.
https://api.dart.dev/stable/2.18.5/dart-js_util/instanceof.html