Function forEachIndexingTailing

  • Processes each entry in the map, with indexing ability, but not the tailing entry, and returns it

    Type Parameters

    • K
    • V

    Parameters

    • Optionalmap: Map<K, V>

      the map to inspect

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

      the callback function that processes each entry

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

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

          Returns void

    Returns [K, V] | undefined

    the tailing entry in the source map