Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/component/collection
- Owner: component
- Created: 2012-11-03T23:37:08.000Z (about 12 years ago)
- Default Branch: master
- Last Pushed: 2015-06-22T14:45:24.000Z (over 9 years ago)
- Last Synced: 2024-11-16T07:38:04.099Z (about 1 month ago)
- Language: JavaScript
- Size: 192 KB
- Stars: 16
- Watchers: 5
- Forks: 11
- Open Issues: 4
-
Metadata Files:
- Readme: Readme.md
- Changelog: History.md
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