mirror of
https://github.com/whoisclebs/lodash.git
synced 2026-02-08 02:17:48 +00:00
Assign methods should create an object when object is nullish.
This commit is contained in:
@@ -3835,7 +3835,7 @@
|
||||
function createAssigner(assigner) {
|
||||
return rest(function(object, sources) {
|
||||
var index = -1,
|
||||
length = object == null ? 0 : sources.length,
|
||||
length = sources.length,
|
||||
customizer = length > 1 ? sources[length - 1] : undefined,
|
||||
guard = length > 2 ? sources[2] : undefined;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user