Javatpoint Logo
Javatpoint Logo

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:

Test it Now

Output:

Save the above code in findwhere.html file and open this file in a new browser.

BackboneJS Findwhere Collection
Next TopicBackbone.js URL





Youtube For Videos Join Our Youtube Channel: Join Now

Feedback


Help Others, Please Share

facebook twitter pinterest

Learn Latest Tutorials


Preparation


Trending Technologies


B.Tech / MCA