Advertisement
Guest User

Untitled

a guest
Mar 28th, 2017
55
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.32 KB | None | 0 0
  1. > x = Immutable.Map({a: 1, b: 2})
  2. Map { "a": 1, "b": 2 }
  3. > y = Immutable.Map({a: 1, b: 2})
  4. Map { "a": 1, "b": 2 }
  5.  
  6. > x === y
  7. false
  8. > Immutable.is(x, y)
  9. true
  10. > x.equals(y)
  11. true
  12. > y.equals(x)
  13. true
  14.  
  15. > x.merge(y)
  16. Map { "a": 1, "b": 2 }
  17. > x.merge(y) === x
  18. true
  19. > x.merge(y) === y
  20. false
  21. > y.merge(x) === y
  22. true
  23. > y.merge(x) === x
  24. false
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement