mirror of
				https://github.com/zulip/zulip.git
				synced 2025-10-31 12:03:46 +00:00 
			
		
		
		
	https://github.com/tc39/proposal-accessible-object-hasownproperty Signed-off-by: Anders Kaseorg <anders@zulip.com>
		
			
				
	
	
		
			24 lines
		
	
	
		
			698 B
		
	
	
	
		
			JavaScript
		
	
	
	
	
	
			
		
		
	
	
			24 lines
		
	
	
		
			698 B
		
	
	
	
		
			JavaScript
		
	
	
	
	
	
| "use strict";
 | |
| 
 | |
| exports.page_params = {};
 | |
| exports.realm_user_settings_defaults = {};
 | |
| exports.user_settings = {};
 | |
| 
 | |
| exports.reset = () => {
 | |
|     for (const field in exports.page_params) {
 | |
|         if (Object.hasOwn(exports.page_params, field)) {
 | |
|             delete exports.page_params[field];
 | |
|         }
 | |
|     }
 | |
|     for (const field in exports.user_settings) {
 | |
|         if (Object.hasOwn(exports.user_settings, field)) {
 | |
|             delete exports.user_settings[field];
 | |
|         }
 | |
|     }
 | |
|     for (const field in exports.realm_user_settings_defaults) {
 | |
|         if (Object.hasOwn(exports.realm_user_settings_defaults, field)) {
 | |
|             delete exports.realm_user_settings_defaults[field];
 | |
|         }
 | |
|     }
 | |
| };
 |