Type Parameters
T
KEY extends string | number = string | number
Constructors
constructor
- new HashMap<T, KEY>(obj?): HashMap<T, KEY>
Type Parameters
T
KEY extends string | number = string | number
Properties
data
data: MapInterface<T, KEY> Methods
each
- each<Context>(cb, context?): void
Parameters
cb: ((this, value?, key?) => void)
- (this, value?, key?): void
Parameters
Optional
value: T
Optional
key: KEY
Returns void
Optional
context: Context
Returns void
hasKey
- hasKey(key): boolean
Returns boolean
removeKey
- removeKey(key): void
Returns void
set
- set(key, value): T
Returns T
Param: obj