lib/list.js
function decorate(list, method, prop) {
  utils.define(list.items, method, function() {
    var res = list[method].apply(list, arguments);
    return prop ? res[prop] : res;
  });
}
function decorate(list, method, prop) {
  utils.define(list.items, method, function() {
    var res = list[method].apply(list, arguments);
    return prop ? res[prop] : res;
  });
}
function decorate ( list , method , prop ) { utils . define ( list . items , method , function ( ) { var res = list [ method ] . apply ( list , arguments ) ; return prop ? res [ prop ] : res ; } ) ; }
Helper function for decorating methods onto the `list.items` array
Helper function for decorating methods onto the list . items array