private removeEmptyValues()

in src/client/src/analytics_client/context_service.ts [90:100]


  private removeEmptyValues(context: unknown) {
    if (!isObject(context)) {
      return {};
    }
    return Object.keys(context).reduce((acc, key) => {
      if (context[key] !== undefined) {
        acc[key] = context[key];
      }
      return acc;
    }, {} as Partial<EventContext>);
  }