Home » Backbone.js collection.pluck()

Backbone.js collection.pluck()

by Online Tutorials Library

Backbone.js collection.pluck()

The backbone.js collection pluck method is used to retrieve an attribute from each model in the collection. It is equivalent to calling map and returning a single attribute from the iterator.

Syntax:


Parameter explanation:

attribute: It specifies the property of a defined model.

Let’s take an example to deploy this property.

See this example:

You may also like