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.
		
		
		
		
		
			
		
			
				
					11 lines
				
				309 B
			
		
		
			
		
	
	
					11 lines
				
				309 B
			| 
											3 years ago
										 | var getKeys = require('./_object-keys'); | ||
|  | var toIObject = require('./_to-iobject'); | ||
|  | module.exports = function (object, el) { | ||
|  |   var O = toIObject(object); | ||
|  |   var keys = getKeys(O); | ||
|  |   var length = keys.length; | ||
|  |   var index = 0; | ||
|  |   var key; | ||
|  |   while (length > index) if (O[key = keys[index++]] === el) return key; | ||
|  | }; |