5 ms·
Nice read, I had to think about a few of these. In particular (a == 0) && (a == 1) && (a == 2). Here's a fun value for a: var a = { called: -1,
by eggsby 13y ago
Nice read, I had to think about a few of these.
In particular (a == 0) && (a == 1) && (a == 2).
Here's a fun value for a:
var a = {
called: -1,
valueOf: function() {
this.called += 1;
return this.called;
}
};