-
-
Save YNSTakeru/34df5333981f3553393fd73c0a186938 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
let myObj = {name:"太郎", score: 100} | |
let newMyObj = {...myObj} | |
newMyObj.name = "二郎" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment