Backbone.js: How to get the index of a model in a Backbone Collection?
yes, backbone provides access to many underscore.js methods on models and collections, including an indexOf
method on collections. it also provides an at
method like you've shown.
var index = this.collection.indexOf(this.model);
var modelAbove = this.collection.at(index-1);