Function forEachTailing

  • Processes each entry in the map, 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) => void)

      the callback function that processes each entry

        • (value, key): void
        • Parameters

          • value: V
          • key: K

          Returns void

    Returns [K, V] | undefined

    the tailing entry in the source map