A bag is an object that aids with counting items.

Type Parameters

  • K

Hierarchy

  • Bag

Implements

Constructors

Properties

[toStringTag]: "Bag" = 'Bag'
map: Map<K, number> = ...

Accessors

Methods

  • Returns IterableIterator<[K, number]>

  • Returns IterableIterator<[K, number]>

  • Parameters

    • callbackfn: ((value: number, key: K, map: ReadonlyMap<K, number>) => void)
        • (value: number, key: K, map: ReadonlyMap<K, number>): void
        • Parameters

          • value: number
          • key: K
          • map: ReadonlyMap<K, number>

          Returns void

    • Optional thisArg: any

    Returns void

  • Returns IterableIterator<number>

Generated using TypeDoc