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
In "Question 29. Write a function called deepClone which takes an object and creates a object copy of it.", the deepClone function should check for a null value:
In "Question 29. Write a function called deepClone which takes an object and creates a object copy of it.", the deepClone function should check for a
null
value:if( typeof object[key] === 'object' && object[key] !== null )
...What's more, we usually want to also check for
hasOwnProperty()
.The text was updated successfully, but these errors were encountered: