Current File : //home/tradevaly/www/node_modules/collect.js/src/methods/count.js
'use strict';

module.exports = function count() {
  let arrayLength = 0;

  if (Array.isArray(this.items)) {
    arrayLength = this.items.length;
  }

  return Math.max(Object.keys(this.items).length, arrayLength);
};