@juulsgaard/ts-tools
    Preparing search index...

    Function mapObj

    • Map an object to a new object. Filters out null values

      Type Parameters

      • TItem
      • TOut

      Parameters

      • obj: Record<string, TItem>
      • mapVal: (val: TItem, key: string) => TOut | undefined
      • mapKey: (val: TItem, key: string) => string | undefined

      Returns Record<string, NonNullable<TOut>>

    • Map an object to a new object. Filters out null values

      Type Parameters

      • TItem
      • TOut

      Parameters

      • obj: Record<string, TItem>
      • mapVal: (val: TItem, key: string) => TOut | undefined

      Returns Record<string, NonNullable<TOut>>