fix #1 check for null / undefined result
This commit is contained in:
		
							parent
							
								
									7218a53487
								
							
						
					
					
						commit
						f761f9215c
					
				@ -26,7 +26,7 @@
 | 
			
		||||
            ret = result = fn(item, k, arr);
 | 
			
		||||
          }
 | 
			
		||||
 | 
			
		||||
          if (!ret.then) {
 | 
			
		||||
          if (!ret || !ret.then) {
 | 
			
		||||
            ret = PromiseA.resolve(result);
 | 
			
		||||
          }
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user