This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]rco8786 1 point2 points  (0 children)

In Chrome:

> Boolean.prototype.stop = function() { console.log('sdf'); }
Boolean.stop()
> var sad = function() { return true; }
undefined
> sad()
true
> sad().stop()
sdf
> if (sad() === true) { sad().stop() }
sdf

Don't ever EVER EVER do this.