jashkenas/underscore — pull request #1917 by tjbarber (2014-11-04 22:31:34+00:00)
Title: Fixes #1870: _.indexOf with `isSorted` of `true` will incorrectly match `undefined` on an empty array.

Addresses @jdalton in #1870. Doing a check for the array's length.