Home » Backbone.js collection.slice()

Backbone.js collection.slice()

by Online Tutorials Library

Backbone.js collection.slice()

The Backbone.js collection slice method is used to return the shallow copy of the elements from the collection model.

Syntax:


Parameter explanation:

begin: It specifies the beginning of elements.

end:It specifies the ending of elements.

Let’s take an example.

See this example:

You may also like