fix undefined check
This commit is contained in:
		
							parent
							
								
									a71c0c3838
								
							
						
					
					
						commit
						a7ef7325f6
					
				
							
								
								
									
										2
									
								
								index.js
									
									
									
									
									
								
							
							
						
						
									
										2
									
								
								index.js
									
									
									
									
									
								
							| @ -20,7 +20,7 @@ Challenge.create = function (options) { | |||||||
|   results.create = undefined; |   results.create = undefined; | ||||||
| 
 | 
 | ||||||
|   Object.keys(defaults).forEach(function (key) { |   Object.keys(defaults).forEach(function (key) { | ||||||
|     if ('undefined' !== typeof options[key]) { |     if ('undefined' === typeof options[key]) { | ||||||
|       options[key] = defaults[key]; |       options[key] = defaults[key]; | ||||||
|     } |     } | ||||||
|   }); |   }); | ||||||
|  | |||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user