instanceOfString method
- String constructorName
Like instanceof, but only takes a String for the constructor name, which is then looked up in the globalContext.
Implementation
bool instanceOfString(String constructorName) {
final constructor = globalContext[constructorName] as JSFunction?;
return constructor != null && instanceof(constructor);
}