Skip to content

Instantly share code, notes, and snippets.

@iwein
iwein / str-cmp.js
Created December 15, 2012 10:15 — forked from anonymous/str-cmp.js
//make sure you understand what's happening here, you'll thank me some day
'foo' === 'bar'
false
'foo' === 'foo'
true
//watch out!
!'foo' === 'foo'
false