MCPcopy Create free account
hub / github.com/rollup/plugins / triStateOr

Function triStateOr

packages/commonjs/src/ast-utils.js:10–15  ·  view source on GitHub ↗
(a, b)

Source from the content-addressed store, hash-verified

8}
9
10function triStateOr(a, b) {
11 if (a === true) return true;
12 if (b === true) return true;
13 if (a === false && b === false) return false;
14 return null;
15}
16
17const operators = {
18 '==': (x) => equals(x.left, x.right, false),

Callers 1

ast-utils.jsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected