🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
9 lines
168 B
JavaScript
Executable File
9 lines
168 B
JavaScript
Executable File
'use strict';
|
|
|
|
module.exports = function isEmpty() {
|
|
if (Array.isArray(this.items)) {
|
|
return !this.items.length;
|
|
}
|
|
|
|
return !Object.keys(this.items).length;
|
|
}; |