🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
9 lines
138 B
JavaScript
Executable File
9 lines
138 B
JavaScript
Executable File
'use strict';
|
|
|
|
module.exports = function when(value, fn, defaultFn) {
|
|
if (!value) {
|
|
fn(this);
|
|
} else {
|
|
defaultFn(this);
|
|
}
|
|
}; |