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