mirror of
https://github.com/whoisclebs/lodash.git
synced 2026-02-03 08:37:49 +00:00
Use arraySum in _.sum.
This commit is contained in:
@@ -8708,10 +8708,10 @@
|
||||
}
|
||||
});
|
||||
|
||||
test('`_.sum` should use `_.iteratee` internally', 1, function() {
|
||||
test('`_.sumBy` should use `_.iteratee` internally', 1, function() {
|
||||
if (!isModularize) {
|
||||
_.iteratee = getPropB;
|
||||
strictEqual(_.sum(objects), 1);
|
||||
strictEqual(_.sumBy(objects), 1);
|
||||
_.iteratee = iteratee;
|
||||
}
|
||||
else {
|
||||
|
||||
Reference in New Issue
Block a user