code: function(){
        var result = [];
  
        ko.utils.arrayForEach(this.models(), function(model){
          result.push(model.toJSON());
        });
  
        return result;
      }
docs: Used for serialization, returns an array containing all the models in the collection serialized calling model.toJSON()