-
-
Save elliotlarson/67170d8110db581c2c0f1a8e7585298b to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const newCharacters = Object.keys(characters).reduce((obj, id) => { | |
if (id !== `${deleteId}`) { | |
return { ...obj, [id]: characters[id] }; | |
} | |
return obj; | |
}, {}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment