• Iterate an object and trigger the callback for each element

    Type Parameters

    • TItem

    Parameters

    • obj: Record<string, TItem>

      Target object

    • callback: ((x: TItem, key: string, index: number) => void)
        • (x, key, index): void
        • Parameters

          • x: TItem
          • key: string
          • index: number

          Returns void

    Returns void