jashkenas/underscore — pull request #1721 by alexanderGugel (2014-07-07 02:07:05+00:00)
Title: Refactor _.some using _.every

All tests pass. I only refactored the _.some function.

Before:
* Iterate over collection, return true as soon as any predicate function returns true.
* Code redundancy in _.every and _.some (ll. 208 - 214)

```javascript
var length = obj.length;
var index, currentKey, keys;
if (length !== +length) {
keys = _.keys(obj);
length = keys.length;
}
```

After:
* Check if *reversed* truth test fails on every item inside collection.

Advantages: Cleaner, shorter, reuse of _.every, no additional corner case checks inside _.some