Best way to “negate” an instanceof

No, there is no better way; yours is canonical.

Leave a Comment