mirror of
https://github.com/whoisclebs/lodash.git
synced 2026-02-10 02:47:50 +00:00
closure-compiler comment, plus semicolons.
This commit is contained in:
@@ -55,6 +55,7 @@
|
|||||||
module.exports = _;
|
module.exports = _;
|
||||||
_._ = _;
|
_._ = _;
|
||||||
} else {
|
} else {
|
||||||
|
// Exported as a string, for Closure Compiler "advanced" mode.
|
||||||
root['_'] = _;
|
root['_'] = _;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -256,10 +257,10 @@
|
|||||||
var result = {};
|
var result = {};
|
||||||
each(obj, function(value, index) {
|
each(obj, function(value, index) {
|
||||||
var key = iterator(value, index);
|
var key = iterator(value, index);
|
||||||
(result[key] || (result[key] = [])).push(value)
|
(result[key] || (result[key] = [])).push(value);
|
||||||
});
|
});
|
||||||
return result;
|
return result;
|
||||||
}
|
};
|
||||||
|
|
||||||
// Use a comparator function to figure out at what index an object should
|
// Use a comparator function to figure out at what index an object should
|
||||||
// be inserted so as to maintain order. Uses binary search.
|
// be inserted so as to maintain order. Uses binary search.
|
||||||
|
|||||||
Reference in New Issue
Block a user