File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change 391391 } ;
392392
393393 // An internal function used for aggregate "group by" operations.
394- var group = function ( behavior , initializer ) {
394+ var group = function ( behavior , partition ) {
395395 return function ( obj , iteratee , context ) {
396- var result = initializer ? initializer ( ) : { } ;
396+ var result = partition ? [ [ ] , [ ] ] : { } ;
397397 iteratee = cb ( iteratee , context ) ;
398398 _ . each ( obj , function ( value , index ) {
399399 var key = iteratee ( value , index , obj ) ;
440440 // predicate, and one whose elements all do not satisfy the predicate.
441441 _ . partition = group ( function ( result , value , pass ) {
442442 result [ pass ? 0 : 1 ] . push ( value ) ;
443- } , function ( ) { return [ [ ] , [ ] ] ; } ) ;
443+ } , true ) ;
444444
445445 // Array Functions
446446 // ---------------
You can’t perform that action at this time.
0 commit comments