Skip to content

Instantly share code, notes, and snippets.

@elliotlarson
Last active August 13, 2018 17:02
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 elliotlarson/2db89659c16e73704f2ade954e9ab870 to your computer and use it in GitHub Desktop.
Save elliotlarson/2db89659c16e73704f2ade954e9ab870 to your computer and use it in GitHub Desktop.
// You don't need to type cast the integer `deleteId` to a string in the
// browser, but when running Jest specs, I found that I had to cast to a
// string. Maybe this is a difference between browser JS and Node, which
// the tests run in?
const { [`${deleteId}`]: deleted, ...newCharacters } = characters;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment