(against, options)
| 23 | } |
| 24 | |
| 25 | getModel(against, options) { |
| 26 | options = _.defaults(options || {}, { |
| 27 | attribute: class="st">'name' |
| 28 | }); |
| 29 | |
| 30 | return this.models.find(model => model[options.attribute] === against); |
| 31 | } |
| 32 | |
| 33 | get all() { |
| 34 | return this.models; |
no outgoing calls
no test coverage detected