code: function injectMethods(Collection, collection) {
    Object.keys(Collection.prototype).forEach(function (method) {
      collection[method] = Collection.prototype[method];
    });
  }
docs: http://www.bennadel.com/blog/2292-extending-javascript-arrays-while-keeping-native-bracket-notation-functionality.htm