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
I see this is because the 'target' arg getting the diffent protecting while the 'deep' arg is true or not. Should it modify the code of index.js file from line 42 to line 49 like this:
if(typeoftarget==='boolean'){deep=target;target=arguments[1];// skip the boolean and the targeti=2;}if((typeoftarget!=='object'&&typeoftarget!=='function')||target==null){target={};}
The text was updated successfully, but these errors were encountered:
While I reviewed the code recently, I've found the 'target' arg's protection is diffent between the 'deep' arg is true or not:
this demo works well, but the following demo causes the "TypeError: Cannot create property 'a' on number '3.14'":
I see this is because the 'target' arg getting the diffent protecting while the 'deep' arg is true or not. Should it modify the code of index.js file from line 42 to line 49 like this:
The text was updated successfully, but these errors were encountered: