-
-
Save elliotlarson/2d3eec476a2afb02de0708415cdf99c2 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
// Adding Maude after Jeffrey at index 2 | |
const newCharacters = [...characters]; | |
newCharacters.splice(2, 0, maude); | |
// => ["Walter", "Jeffrey", "Maude", "Donald"] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment