mirror of
https://github.com/henrywhitaker3/Speedtest-Tracker.git
synced 2025-12-25 06:49:15 +01:00
11 lines
218 B
JavaScript
Vendored
11 lines
218 B
JavaScript
Vendored
'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);
|
|
}; |