daily pastebin goal
10%
SHARE
TWEET

Untitled

a guest Dec 10th, 2018 59 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. ```
  2. > o1 = { b: 'c' }
  3. { b: 'c' }
  4. > o2 = o1
  5. { b: 'c' }
  6. > o3 = { ...o1 }
  7. { b: 'c' }
  8. > o1 === o2
  9. true
  10. > o1 === o3
  11. false
  12. > { o1, o2, o3 }
  13. { o1: { b: 'c' }, o2: { b: 'c' }, o3: { b: 'c' } }
  14. ```
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top