collection

November 3, 2012 ยท View on GitHub

Enumerable data model collections, with all Enumerable methods available.

Installation

$ component install component/collection

API

Collection([models])

Initialize a new collection with the given models.

Collection#length()

Return the collection length.

Collection#push(model:Object)

Add model to the collection and return the index.

License

MIT

Contents

  1. 1Installation
  2. 2API
  3. 2.1Collection([models])
  4. 2.2Collection#length()
  5. 2.3Collection#push(model:Object)
  6. 3License