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
By modification to fix #3, a following bug is included:
functionO(v){this.a={b: {c: v}};}varo1=newO(123);varo2=newO(456);varp1={o: o1};varp2={o: o2};copyProps(p1,p2);console.log(p2.o===o1);// => false, but it should be true!
This bug can be fixed by using isPlainObject to check an empty plain object instead of isObject.