🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
11 lines
218 B
JavaScript
Executable File
11 lines
218 B
JavaScript
Executable File
'use strict';
|
|
|
|
module.exports = function count() {
|
|
var arrayLength = 0;
|
|
|
|
if (Array.isArray(this.items)) {
|
|
arrayLength = this.items.length;
|
|
}
|
|
|
|
return Math.max(Object.keys(this.items).length, arrayLength);
|
|
}; |