function isInstanceOf(wat, base) {
    try {
        return wat instanceof base;
    }
    catch (_e) {
        return false;
    }
}
Checks whether given value's type is an instance of provided constructor.
{@link isInstanceOf}.

@param wat A value to be checked.
@param base A constructor to be used in a check.
@returns A boolean representing the result.