-
-
Save elliotlarson/1d20d6f0b08b61cfb12543d7d369302e to your computer and use it in GitHub Desktop.
This file contains hidden or 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
// creating a copy with `slice` | |
const newCharacters = characters.slice(); | |
// you could also just copy with the spread | |
// const newCharacters = […characters]; | |
newCharacters.push(maude); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment