Advertisement
stuppid_bot

Untitled

Feb 6th, 2016
263
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. ((testObj) => {
  2.    [1, 0, false, null, undefined, NaN, -NaN, Infinity, -Infinity, '0', '',
  3.     'null', {}, [], function() {}].forEach((q) => {
  4.       console.log('%o == %o // %o', q, testObj, q == testObj);
  5.     });
  6. })(null)
  7. VM277:5 1 == null // false
  8. VM277:5 0 == null // false
  9. VM277:5 false == null // false
  10. VM277:5 null == null // true
  11. VM277:5 undefined == null // true
  12. VM277:5 NaN == null // false
  13. VM277:5 NaN == null // false
  14. VM277:5 Infinity == null // false
  15. VM277:5 -Infinity == null // false
  16. VM277:5 "0" == null // false
  17. VM277:5 "" == null // false
  18. VM277:5 "null" == null // false
  19. VM277:5 Object == null // false
  20. VM277:5 [] == null // false
  21. VM277:5 anonymous() == null // false
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement