(a, b, strict)
| 35 | } |
| 36 | |
| 37 | function 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 | |
| 44 | export function isTruthy(node) { |
| 45 | if (!node) return false; |