visionmedia/should.js — pull request #32 by RubenVerborgh (2011-12-26 15:06:45+00:00)
Title: Check if an Array includes an object equal to a specified object.

Since `include` uses `indexOf`, it cannot test for equality.

I have added an `includeEql` method that tests whether an object equal to the specified one is present in the array.

One prominent case occurs when testing an array of arrays:
[[1],[2],[3]].should.not.include([3])
[[1],[2],[3]].should.not.include([2])
[[1],[2],[3]].should.not.include([4])

But, thanks to this extension:

[[1],[2],[3]].should.includeEql([3])
[[1],[2],[3]].should.includeEql([2])
[[1],[2],[3]].should.not.includeEql([4])