docs: function isEmpty(obj) {
        var none = isNone(obj);
        if (none) {
          return none;
        }
  
        if (typeof obj.size === 'number') {
          return !obj.size;
        }
  
        var objectType = typeof obj;
  
        if (objectType === 'object') {
          var size = get(obj, 'size');
          if (typeof size === 'number') {
            return !size;
          }
        }
  
        if (typeof obj.length === 'number' && objectType !== 'function') {
          return !obj.length;
        }
  
        if (objectType === 'object') {
          var length = get(obj, 'length');
          if (typeof length === 'number') {
            return !length;
          }
        }
  
        return false;
      }