Home » Backbone.js collection.shift()

Backbone.js collection.shift()

by Online Tutorials Library

Backbone.js collection.shift()

The Backbone.js collection shift method is used to remove and return the first model form the collection. It takes the same option as remove() method.

Syntax:


Parameter explanation:

options:It specifies the model type which will be removed from the collection.

Let’s take an example.

See this example:

You may also like