You can not select more than 25 topics
			Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
		
		
		
		
		
			
		
			
				
					
					
						
							22 lines
						
					
					
						
							368 B
						
					
					
				
			
		
		
	
	
							22 lines
						
					
					
						
							368 B
						
					
					
				| 'use strict';
 | |
| 
 | |
| const constants = exports;
 | |
| 
 | |
| // Helper
 | |
| constants._reverse = function reverse(map) {
 | |
|   const res = {};
 | |
| 
 | |
|   Object.keys(map).forEach(function(key) {
 | |
|     // Convert key to integer if it is stringified
 | |
|     if ((key | 0) == key)
 | |
|       key = key | 0;
 | |
| 
 | |
|     const value = map[key];
 | |
|     res[value] = key;
 | |
|   });
 | |
| 
 | |
|   return res;
 | |
| };
 | |
| 
 | |
| constants.der = require('./der');
 |