docs: function compact(source) {
      if (!source) return null;
  
      if (isArray(source))
          return compactArray(source);
  
      if (typeof source == 'object')
          return compactObject(source);
  
      return source;
  }