🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
5 lines
137 B
JavaScript
Executable File
5 lines
137 B
JavaScript
Executable File
'use strict';
|
|
|
|
module.exports = function firstWhere(key, operator, value) {
|
|
return this.where(key, operator, value).first() || null;
|
|
}; |