Class RainlinkDatabase<G>
Constructors
Accessors
size
- get size(): number
Returns number
number
values
- get values(): G[]
Returns G[]
unknown[]
full
- get full(): [string, G][]
Returns [string, G][]
unknown[]
Methods
get
- get<D>(key): undefined | D
Returns undefined | D
D
delete
- delete<D>(key): undefined | D
Returns undefined | D
D
clear
- clear(): void
Returns void
set
- set<D>(key, data): undefined | D
Returns undefined | D
D
forEach
- forEach(callback): void
Parameters
- callback: ((value: G, key: string) => unknown)
- (value, key): unknown
Returns unknown
Returns void
A class for storing data using key like Map. Aka: reduce version of Map