Skip to content

component/collection

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Jun 22, 2015
c083bfe · Jun 22, 2015

History

8 Commits
Jan 21, 2014
Nov 3, 2012
Jan 21, 2014
Nov 3, 2012
Jan 21, 2014
Jan 21, 2014
Jun 22, 2015

Repository files navigation

collection

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