Home » Backbone.js collection.findWhere()

Backbone.js collection.findWhere()

by Online Tutorials Library

Backbone.js collection.findWhere()

The Backbone.js collection findWhere method is same like where method, but it returns only the first model in the collection that matches the passed attributes.

Syntax:


Parameter explanation:

attribute: It specifies the property of the defined model.

Let’s take an example to deploy the findWhere method.

See this example:

You may also like