documentcloud/underscore — Issue #376: Fix DontEnum bugs w/ _.isEmpty() and _.keys()
Author: jdalton
Created: 2011-11-20 23:03:54+00:00
State: open

IE and other browsers have bugs with `for...in` statements.

A simple test case can be [found here](http://jsbin.com/ojekay).

For a reference on how to handle these issues check out [spotlight.js](https://github.com/bestiejs/spotlight.js/blob/ad50ed5c2fa662e76f19fa64d4029eb33f56e5e7/spotlight.js#L73-180).
*(the comments in the code also give insight into other for..in issues)*