Added the underscore node_module.
All checks were successful
Auto Maintenance Cycle / pre-commit Autoupdate (push) Successful in 39s
All checks were successful
Auto Maintenance Cycle / pre-commit Autoupdate (push) Successful in 39s
This commit is contained in:
15
node_modules/underscore/modules/_group.js
generated
vendored
Normal file
15
node_modules/underscore/modules/_group.js
generated
vendored
Normal file
@ -0,0 +1,15 @@
|
||||
import cb from './_cb.js';
|
||||
import each from './each.js';
|
||||
|
||||
// An internal function used for aggregate "group by" operations.
|
||||
export default 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;
|
||||
};
|
||||
}
|
Reference in New Issue
Block a user