Function forEachIndexing

  • Processes each entry in the map, with indexing ability

    Type Parameters

    • K
    • V

    Parameters

    • Optionalmap: Map<K, V>

      the map to inspect

    • Optionalcallback: ((value: V, key: K, index: number) => void)

      a callback function that processes each entry

        • (value, key, index): void
        • Parameters

          • value: V
          • key: K
          • index: number

          Returns void

    Returns void