ES6 Plato on GitHub
Report Home
Summary Display
escomplex-commons/src/utils/ast/OperatorPrecedence.ts
Maintainability
55.37
Lines of code
29
Difficulty
2.83
Estimated Errors
0.14
Function weight
By Complexity
By SLOC
const OperatorPrecedence: { [key: string]: number } = { "||": 3, "&&": 4, "|": 5, "^": 6, "&": 7, "==": 8, "!=": 8, "===": 8, "!==": 8, "<": 9, ">": 9, "<=": 9, ">=": 9, in: 9, instanceof: 9, "<<": 10, ">>": 10, ">>>": 10, "+": 11, "-": 11, "*": 12, "%": 12, "/": 12, "**": 12, }; export default OperatorPrecedence;