ui
This commit is contained in:
+11
@@ -0,0 +1,11 @@
|
||||
'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);
|
||||
};
|
||||
Reference in New Issue
Block a user