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

Function triStateAnd

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

Source from the content-addressed store, hash-verified

1export { default as isReference } from 'is-reference';
2
3function triStateAnd(a, b) {
4 if (a === false) return false;
5 if (b === false) return false;
6 if (a === true && b === true) return true;
7 return null;
8}
9
10function triStateOr(a, b) {
11 if (a === true) return true;

Callers 1

ast-utils.jsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected