lib/collection.js
function Collection(options) {
  if (!(this instanceof Collection)) {
    return new Collection(options);
  }

  Base.call(this, {}, options);
  this.is('Collection');
  this.items = {};

  this.use(utils.option());
  this.use(utils.plugin());
  this.init(options || {});
}
function Collection(options) {
  if (!(this instanceof Collection)) {
    return new Collection(options);
  }

  Base.call(this, {}, options);
  this.is('Collection');
  this.items = {};

  this.use(utils.option());
  this.use(utils.plugin());
  this.init(options || {});
}
function Collection ( options ) { if ( ! ( this instanceof Collection ) ) { return new Collection ( options ) ; } Base . call ( this , { } , options ) ; this . is ( 'Collection' ) ; this . items = { } ; this . use ( utils . option ( ) ) ; this . use ( utils . plugin ( ) ) ; this . init ( options || { } ) ; }
Create an instance of `Collection` with the given `options`.

```js
var collection = new Collection();
collection.addItem('foo', {content: 'bar'});
```
@param {Object} `options`
@api public
Create an instance of Collection with the given options .