Class: Collection

core~ Collection

A class representing a collection. Each item in the collection will be an instance of the provided Model.


new Collection(ItemModel [, array])

Create a new Collection

Parameters:
Name Type Argument Default Description
ItemModel function

The class to use as the model for each item in the collection

array Array <optional>
[]

The array to instantiate the Collection with

Extends

  • Array