HOME


sh-3ll 1.0
DIR:/proc/self/cwd/bright.medisavehealthcarebd.com/node_modules/collect.js/dist/methods/
Upload File :
Current File : //proc/self/cwd/bright.medisavehealthcarebd.com/node_modules/collect.js/dist/methods/count.js
'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);
};