Skip to content

Instantly share code, notes, and snippets.

@jbmilgrom
Created August 28, 2019 13:47
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jbmilgrom/a340c8bdc80aab828681428182935f1f to your computer and use it in GitHub Desktop.
Save jbmilgrom/a340c8bdc80aab828681428182935f1f to your computer and use it in GitHub Desktop.
"sameness" in the context of immutability
const p1 = [1, 2] as const;
const p2 = [1, 2] as const;
const p3 = [1, 3] as const;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment