Ensure trailing function sources aren't skipping for _.assign, _.assignIn, _.defaults, & _.merge. [closes #2311]

This commit is contained in:
John-David Dalton
2016-05-06 21:24:57 -07:00
parent 9a461a5e48
commit ca1f22a7c6
2 changed files with 13 additions and 5 deletions

View File

@@ -4322,7 +4322,7 @@
customizer = length > 1 ? sources[length - 1] : undefined,
guard = length > 2 ? sources[2] : undefined;
customizer = typeof customizer == 'function'
customizer = (assigner.length > 3 && typeof customizer == 'function')
? (length--, customizer)
: undefined;