--- layout: posts title: Api - Collector Class ---

Collects items that share a common key.

Type parameters

Hierarchy

Index

Constructors

constructor

Properties

collections

collections: ICollection<K, T>[]

Methods

addItemToCollection

  • addItemToCollection(key: K, item: T): void

findCollection

  • findCollection(key: K, action?: function): T[]

getCollectionsOfMultiple

  • getCollectionsOfMultiple(cb: function): void

removeCollection

  • removeCollection(key: K): boolean

removeItemFromCollection

  • removeItemFromCollection(key: K, item: T): boolean

Generated using TypeDoc