Skip to content

Instantly share code, notes, and snippets.

@amysimmons
Created February 14, 2018 08:52
Show Gist options
  • Select an option

  • Save amysimmons/4bff133c8d9bb172b515497377e42416 to your computer and use it in GitHub Desktop.

Select an option

Save amysimmons/4bff133c8d9bb172b515497377e42416 to your computer and use it in GitHub Desktop.
a = { valueOf: () => 22, toString: () => 44 }

String(a) // "44"
a + "" // "22"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment