jashkenas/coffee-script — Issue #1882: unnecessary boilerplate when using `in`
Author: rpflorence
Created: 2011-11-20 05:08:04+00:00
State: open

`'foo' in window` kicks out this:

```javascript
var __hasProp = Object.prototype.hasOwnProperty, __indexOf = Array.prototype.indexOf || function(item) { for (var i = 0, l = this.length; i < l; i++) { if (__hasProp.call(this, i) && this[i] === item) return i; } return -1; };

__indexOf.call(window, 'foo') >= 0;
```