5 lines
137 B
JavaScript
5 lines
137 B
JavaScript
|
'use strict';
|
||
|
|
||
|
module.exports = function firstWhere(key, operator, value) {
|
||
|
return this.where(key, operator, value).first() || null;
|
||
|
};
|