Methods
addItemToCollection
- addItemToCollection(key: K, item: T): void
findCollection
- findCollection(key: K, action?: (index: number) => void): T[]
-
Parameters
-
key: K
-
Optional action: (index: number) => void
Returns T[]
getCollectionsOfMultiple
- getCollectionsOfMultiple(cb: (key: K, items: T[]) => void): void
-
Parameters
-
cb: (key: K, items: T[]) => void
-
- (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
收集共享公用键的项.