Function forEachIndexingBreakable

  • Processes each entry in the map, with indexing and breakable ability

    Type Parameters

    • K
    • V

    Parameters

    • Optionalmap: Map<K, V>

      the map to inspect

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

      the callback function that processes each entry, returns false means break

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

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

          Returns boolean

    Returns void