extend
    List.extend([name,] [staticProperties,] instanceProperties)
  
  Creates a new extended constructor function. Learn more at [can.Construct.extend].
var MyList = List.extend({}, {
    // silly unnecessary method
    count: function(){
        return this.attr('length');
    }
});
var list = new MyList([{}, {}]);
console.log(list.count()); // -> 2
Parameters
- name {String}:If provided, adds the extened List constructor function to the window at the given name. 
- staticProperties {Object}:Properties and methods directly on the constructor function. The most common property to set is Map. 
- instanceProperties {Object}:Properties and methods on instances of this list type. 
 GitHub
GitHub Twitter
Twitter