Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/component/collection

Enumerable data model collections
https://github.com/component/collection

Last synced: 12 days ago
JSON representation

Enumerable data model collections

Awesome Lists containing this project

README

        

# collection

Enumerable data model collections, with all [Enumerable](https://github.com/component/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