@yookue/ts-lang-utils
    Preparing search index...

    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> | ReadonlyMap<K, V>

        the map to inspect

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

        the callback function that processes each entry

      Returns undefined | [K, V]

      the tailing entry in the source map

      David Hsing