Yesterday I found a code to search a Backbone collection using a any() function rather that something like.
var myItem Collection.findWhere(...)
if (myItem)
{
}
But my file as been erased by TypeScript and "any" is such a vague keyword I can't find it back.
anyis an alias ofsome. It's mixed into Backbone.collection so you can just docollection.some()orcollection.any()