kai-jacobsen/kontentblocks

View on GitHub
js/src/frontend/Collections/ModuleCollection.js

Summary

Maintainability
A
0 mins
Test Coverage
module.exports = Backbone.Collection.extend({

  filterByAttr: function(attr, value){
    return this.filter(function(module){
      return (module.get(attr) === value);
    }, this);
  }

});