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

  Base.call(this);

  this.is('list');
  this.define('isCollection', true);
  this.use(utils.option());
  this.use(utils.plugin());
  this.init(options || {});
}
function List(options) {
  if (!(this instanceof List)) {
    return new List(options);
  }

  Base.call(this);

  this.is('list');
  this.define('isCollection', true);
  this.use(utils.option());
  this.use(utils.plugin());
  this.init(options || {});
}
function List ( options ) { if ( ! ( this instanceof List ) ) { return new List ( options ) ; } Base . call ( this ) ; this . is ( 'list' ) ; this . define ( 'isCollection' , true ) ; this . use ( utils . option ( ) ) ; this . use ( utils . plugin ( ) ) ; this . init ( options || { } ) ; }
Create an instance of `List` with the given `options`.
Lists differ from collections in that items are stored
as an array, allowing items to be paginated, sorted,
and grouped.

```js
var list = new List();
list.addItem('foo', {content: 'bar'});
```
@param {Object} `options`
@api public
Create an instance of List with the given options . Lists differ from collections in that items are stored as an array allowing items to be paginated sorted and grouped .