v3 new release (#80)
This commit is contained in:
		
				
					committed by
					
						 GitHub
						GitHub
					
				
			
			
				
	
			
			
			
						parent
						
							a767c8d3a1
						
					
				
				
					commit
					20d2b4f98d
				
			
							
								
								
									
										18
									
								
								node_modules/underscore/amd/_group.js
									
									
									
										generated
									
									
										vendored
									
									
										Normal file
									
								
							
							
						
						
									
										18
									
								
								node_modules/underscore/amd/_group.js
									
									
									
										generated
									
									
										vendored
									
									
										Normal file
									
								
							| @@ -0,0 +1,18 @@ | ||||
| define(['./_cb', './each'], function (_cb, each) { | ||||
|  | ||||
|   // An internal function used for aggregate "group by" operations. | ||||
|   function group(behavior, partition) { | ||||
|     return function(obj, iteratee, context) { | ||||
|       var result = partition ? [[], []] : {}; | ||||
|       iteratee = _cb(iteratee, context); | ||||
|       each(obj, function(value, index) { | ||||
|         var key = iteratee(value, index, obj); | ||||
|         behavior(result, value, key); | ||||
|       }); | ||||
|       return result; | ||||
|     }; | ||||
|   } | ||||
|  | ||||
|   return group; | ||||
|  | ||||
| }); | ||||
		Reference in New Issue
	
	Block a user