Add node modules and new code for release (#57)
Co-authored-by: taakleton <taakleton@users.noreply.github.com>
This commit is contained in:
committed by
GitHub
parent
da63a48ad7
commit
a517f2ff65
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