src/utils/bot-utils.js
/**
   * Checks if the object is empty, not considering its inherited properties, methods etc.
   * @param  {Object}  obj the object to check
   * @return {Boolean}     true if the object is empty
   */
Checks if the object is empty, not considering its inherited properties, methods etc.
@param  {Object}  obj the object to check
@return {Boolean}     true if the object is empty
Checks if the object is empty not considering its inherited properties methods etc . @param { Object } obj the object to check @return { Boolean } true if the object is empty
static isEmpty(object) {
    for (const prop in object) {
      if (Object.prototype.hasOwnProperty.call(object, prop)) {
        return false;
      }
    }
    return JSON.stringify(object) === JSON.stringify({});
  }
static isEmpty ( object ) { for ( const prop in object ) { if ( Object . prototype . hasOwnProperty . call ( object , prop ) ) { return false ; } } return JSON . stringify ( object ) === JSON . stringify ( { } ) ; }
Checks if the object is empty, not considering its inherited properties, methods etc.
Checks if the object is empty not considering its inherited properties methods etc .