mirror of
https://github.com/whoisclebs/lodash.git
synced 2026-02-11 19:37:49 +00:00
Avoid argument issues in _.merge.
Former-commit-id: 2f8a798654e903454050211886b19b3b581a3c88
This commit is contained in:
@@ -1669,10 +1669,12 @@
|
||||
* _.merge(stooges, ages);
|
||||
* // => [{ 'name': 'moe', 'age': 40 }, { 'name': 'larry', 'age': 50 }]
|
||||
*/
|
||||
function merge(object, source, indicator, stackA, stackB) {
|
||||
function merge(object, source, indicator) {
|
||||
var args = arguments,
|
||||
index = 0,
|
||||
length = 2;
|
||||
length = 2,
|
||||
stackA = args[3],
|
||||
stackB = args[4];
|
||||
|
||||
if (indicator != compareAscending) {
|
||||
stackA = [];
|
||||
|
||||
Reference in New Issue
Block a user