new ListMap()
- Source:
Methods
find(callback) → {T}
- Source:
Name | Type | Description |
---|---|---|
callback |
(value: T, key: number | string, index: number, obj: IObject<T>) => boolean |
Returns:
- Type
- T
findIndex(callback) → {number}
- Source:
Name | Type | Description |
---|---|---|
callback |
(value: T, key: number | string, index: number, obj: IObject<T>) => boolean |
Returns:
- Type
- number
forEach(callback) → {this}
- Source:
Name | Type | Description |
---|---|---|
callback |
(value: T, key: number | string, index: number, obj: IObject<T>) => void |
Returns:
- Type
- this
get(key) → {T}
- Source:
Name | Type | Description |
---|---|---|
key |
string | number |
Returns:
- Type
- T
getIndex(key)
- Source:
Name | Type | Description |
---|---|---|
key |
string | number |
has(key) → {boolean}
- Source:
Name | Type | Description |
---|---|---|
key |
string | number |
Returns:
- Type
- boolean
keys() → {Array<number | string>}
- Source:
Returns:
- Type
- Array<number | string>
remove(key) → {this}
- Source:
Name | Type | Description |
---|---|---|
key |
string | number |
Returns:
- Type
- this
set(key, value) → {this}
- Source:
Name | Type | Description |
---|---|---|
key |
string | number | |
value |
T |
Returns:
- Type
- this
size() → {number}
- Source:
Returns:
- Type
- number
splice(index, deleteCount, ...items) → {Array<[number | string, T]>}
- Source:
Name | Type | Description |
---|---|---|
index |
number | |
deleteCount |
number | |
...items |
Array<[number | string, T]> |
Returns:
- Type
- Array<[number | string, T]>
values() → {T[]}
- Source:
Returns:
- Type
- T[]