Backbone.js: Module 6 Collections
by emgee
HTML
<script src="http://documentcloud.github.com/underscore/underscore.js"></script>
<script src="http://documentcloud.github.com/backbone/backbone.js"></script>
JavaScript
var c = new Backbone.Collection([
{ name: "thing" },
{ name: "other" }
]);
console.log(c.length);
console.log( c.at(0));