You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Not sure what the desired behavior is here, but I assumed that calling _.clone on an object created with Object.create(null) would create a new object which does not inherit from Object.prototype.
A shallow clone won't do that as it's just _.assign({}, object) and a deep clone is loosely based on the structured cloning algorithm and doesn't attempt to clone inheritance or lack thereof .
Not sure what the desired behavior is here, but I assumed that calling
_.clone
on an object created withObject.create(null)
would create a new object which does not inherit fromObject.prototype
.Couldn't find any prior tickets, but I could have missed something.
The text was updated successfully, but these errors were encountered: