Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ((testObj) => {
- [1, 0, false, null, undefined, NaN, -NaN, Infinity, -Infinity, '0', '',
- 'null', {}, [], function() {}].forEach((q) => {
- console.log('%o == %o // %o', q, testObj, q == testObj);
- });
- })(null)
- VM277:5 1 == null // false
- VM277:5 0 == null // false
- VM277:5 false == null // false
- VM277:5 null == null // true
- VM277:5 undefined == null // true
- VM277:5 NaN == null // false
- VM277:5 NaN == null // false
- VM277:5 Infinity == null // false
- VM277:5 -Infinity == null // false
- VM277:5 "0" == null // false
- VM277:5 "" == null // false
- VM277:5 "null" == null // false
- VM277:5 Object == null // false
- VM277:5 [] == null // false
- VM277:5 anonymous() == null // false
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement