---
layout: posts
title: Api - Collector Class
---
Properties
collections
collections: ICollection<K, T>[]
Methods
addItemToCollection
- addItemToCollection(key: K, item: T): void
findCollection
- findCollection(key: K, action?: function): T[]
-
Parameters
-
key: K
-
Optional action: function
Returns T[]
getCollectionsOfMultiple
- getCollectionsOfMultiple(cb: function): void
-
Parameters
-
cb: function
-
- (key: K, items: T[]): void
Returns void
removeCollection
- removeCollection(key: K): boolean
-
Parameters
Returns boolean
removeItemFromCollection
- removeItemFromCollection(key: K, item: T): boolean
-
Parameters
Returns boolean
Collects items that share a common key.