Last active
          November 25, 2019 23:28 
        
      - 
      
- 
        Save Jagathishrex/8cd8af78bb7d4c9c7cfbba8507be0a6a 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
    
  
  
    
  | var obj = {one : 1, two : 2}; | |
| var copiedObj = {...obj}; | |
| copiedObj.one = 3; | |
| console.log(copiedObj.one); // 3 | |
| console.log(obj.one); // 1 | 
  
    Sign up for free
    to join this conversation on GitHub.
    Already have an account?
    Sign in to comment