HOME


sh-3ll 1.0
DIR:/proc/self/cwd/bright.medisavehealthcarebd.com/node_modules/collect.js/src/methods/
Upload File :
Current File : //proc/self/cwd/bright.medisavehealthcarebd.com/node_modules/collect.js/src/methods/toJson.js
'use strict';

module.exports = function toJson() {
  if (typeof this.items === 'object' && !Array.isArray(this.items)) {
    return JSON.stringify(this.all());
  }

  return JSON.stringify(this.toArray());
};