documentcloud/backbone — pull request #2006 by caseywebdev (2012-12-21 20:50:09+00:00)
Title: Use typeof in `sort`, http://jsperf.com/isstring-vs-typeof-string/2

With this patch...

```js
var attr = 'name';
comparator: new String(attr) // broke, 'object'
comparator: String(attr) // works
comparator: attr // works
comparator: attr + '' // works
comparator: 'name' // works
```

But you can see the speed difference for typeof vs _.isString. Another case of how much weird crap should be supported?