Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Example of "sameness" in the context of mutability
const p1 = [1, 2];
const p2 = [1, 2];
const p3 = [1, 3];
p2[1] = 3;
// Which of p1, p2 and p3 are "the same"?
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.