epeli/underscore.string — Issue #71: underscore 1.1.7 union(..) bug with underscore.string 1.1.6
Author: ladlestein
Created: 2011-12-15 20:01:23+00:00
State: open

Execute this script with node.js and the specified versions:

```javascript
var _ = require( 'underscore' );
_.mixin( require( 'underscore.string' ) );

var x = [{a: 5}, {b: 6}, {c: 7}];
var y = [];
console.log(_.union(x, y));
```

The result will include only the first element of x. Playing with it a bit, it looks like union(..) will keep integers in the array, while throwing out all objects after the first one.

Now comment out the mixin. The result will be correct.