def isJavascript(self, view):
        # Check the file extension
        name = view.file_name()
        if (name and os.path.splitext(name)[1][1:] in ["js"]):
            return True
        # If it has no name (?) or it's not a JS, check the syntax
        syntax = view.settings().get("syntax")
        if (syntax and syntax.split("/")[-1].lower() in "javascript"):
            return True

        return False
dataset/ETHPy150Open piuccio/sublime-esformatter/EsFormatter.py/EsformatEventListener.isJavascript/swapped operands of `in`