|
_.extend = function (obj1, ...objects) { |
|
|
|
obj1 = Object.assign(objects) |
|
|
|
return obj1 |
|
} |
@SpecTrail5, it looks like the issue here is that objects is potentially an array of objects. So you'll want to iterate through the array of objects, and for each object, add the properties of the object to obj1 using the Object.assign() method
underpants/underpants.js
Lines 608 to 613 in e8ac1da
@SpecTrail5, it looks like the issue here is that
objectsis potentially an array of objects. So you'll want to iterate through the array of objects, and for each object, add the properties of the object toobj1using the Object.assign() method