code: function isContainedInCondition(node) {
    while (node) {
      if (isConditionCheck(node) || isNegationOperator(node) || isBooleanConstructorCall(node)) {
        return true
      }
      node = node.parent
    }
    return false
  }
docs: recursion: function isContainedInCondition(node) { if (node.type === 'Program') { return false; } return isConditionCheck(node) || isNegationOperator(node) || isBooleanConstructorCall(node) || isContainedInCondition(node.parent); } not-recursion: