René Nyffenegger's collection of things on the web | |
René Nyffenegger on Oracle - Most wanted - Feedback
- Follow @renenyffenegger
|
eqeq [JavaScript snippet] | ||
function main() { txt_out(null == undefined); // true txt_out(false == 0); // true txt_out("" == 0); // true txt_out("42" == 42); // true // --- var o1 = {foo: "bar", bar: {q : "bbb", m: [1, 2, 'three',]}, cdefg: "defgh"}; var o2 = {foo: "bar", bar: {q : "bbb", m: [1, 2, 'three',]}, cdefg: "defgh"}; txt_out(o1 == o2); // false }
See also other Javascript snippets
|