-
Notifications
You must be signed in to change notification settings - Fork 1.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Question 31 #79
Comments
you are totally right, this question is misleading. Will remove it. |
Anyway, the guide is very good 😊 congrats! |
@ganqqwerty I came here to create this issue but found there is already a ticket for it. Is this question relevant? Because if we need to shallow copy, can't we just assign it? |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Both compares return false. This is because in JavaScript we pass non primitive data types by reference. So, say:
{id:1} == {id:1} // returns false even though is shallow compare, we are not comparing here two objects values, but 2 references, which are different.
The text was updated successfully, but these errors were encountered: