Skip to content

Instantly share code, notes, and snippets.

@jonatan-alama
Created April 2, 2016 01:50
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jonatan-alama/fc35c1432a5fa8642e0e686c9c33ee25 to your computer and use it in GitHub Desktop.
Save jonatan-alama/fc35c1432a5fa8642e0e686c9c33ee25 to your computer and use it in GitHub Desktop.
let myclass = new MyClass();
if (myclass instanceof IMyInterface) {} // Error "Cannot find name 'IMyInterface'"
if (myclass instanceof MyClass) {} // OK
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment