component-collection

0.0.4 • Public • Published

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

Dependencies (1)

Dev Dependencies (0)

    Package Sidebar

    Install

    npm i component-collection

    Weekly Downloads

    1

    Version

    0.0.4

    License

    MIT

    Last publish

    Collaborators

    • timaschew