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

Function equals

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

Source from the content-addressed store, hash-verified

35}
36
37function equals(a, b, strict) {
38 if (a.type !== b.type) return null;
39 // eslint-disable-next-line eqeqeq
40 if (a.type === 'Literal') return strict ? a.value === b.value : a.value == b.value;
41 return null;
42}
43
44export function isTruthy(node) {
45 if (!node) return false;

Callers 1

ast-utils.jsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected