1

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.

TTT
  • 1,848
  • 2
  • 30
  • 60
  • Hi i think this will solve your problems : https://stackoverflow.com/questions/12315973/fetch-backbone-collection-with-search-parameters – Chinmaya Hegde Nov 10 '17 at 11:58

1 Answers1

4

any is an alias of some. It's mixed into Backbone.collection so you can just do collection.some() or collection.any()

T J
  • 42,762
  • 13
  • 83
  • 138