def IsOperator(self, operator):
    return self.type == JavaScriptTokenType.OPERATOR and self.string == operator
Tests if this token is the given operator.
dataset/ETHPy150Open google/closure-linter/closure_linter/javascripttokens.py/JavaScriptToken.IsOperator