MCPcopy
hub / github.com/prettier/prettier / isBitwiseOperator

Function isBitwiseOperator

src/language-js/utilities/is-bitwise-operator.js:3–10  ·  view source on GitHub ↗
(operator)

Source from the content-addressed store, hash-verified

1import { bitshiftOperators } from "./should-flatten.js";
2
3function isBitwiseOperator(operator) {
4 return (
5 Boolean(bitshiftOperators[operator]) ||
6 operator === "|" ||
7 operator === "^" ||
8 operator === "&"
9 );
10}
11
12export { isBitwiseOperator };

Callers 1

needsParenthesesFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…