def _expr_unary_typeof(wrapper):
    """Evaluate the "typeof" value for a JS object."""
    if wrapper.callable:
        return "function"
    elif isinstance(wrapper, JSGlobal):
        if "typeof" in wrapper.global_data:
            return wrapper.global_data["typeof"]
        if ("return" in wrapper.global_data and
            wrapper.global_data not in "value"):
            return "function"
        if wrapper.global_data.get("undefined", False):
            return "undefined"

    return wrapper.TYPEOF
dataset/ETHPy150Open mozilla/app-validator/appvalidator/testcases/javascript/nodedefinitions.py/_expr_unary_typeof/swapped operands of `not in`