Skip to main content

MapUtils

Classes

default

Defined in: utils/MapUtils.ts:1

Constructors

Constructor

new default(): default

Returns

default

Methods

cloneAndSplice()

static cloneAndSplice<K, V>(map, start, deleteCount?, ...items?): Map<K, V>

Defined in: utils/MapUtils.ts:18

Type Parameters
K

K

V

V

Parameters
map

Map<K, V>

start

number

deleteCount?

number

items?

...[K, V][]

Returns

Map<K, V>

cloneAndSpliceSet()

static cloneAndSpliceSet<K, V>(map, key, value, index?): Map<K, V>

Defined in: utils/MapUtils.ts:33

Type Parameters
K

K

V

V

Parameters
map

Map<K, V>

key

K

value

V

index?

number

Returns

Map<K, V>

map()

static map<K, V, T>(map, callbackfn, thisArg?): T[]

Defined in: utils/MapUtils.ts:2

Type Parameters
K

K

V

V

T

T

Parameters
map

Map<K, V>

callbackfn

(key, value, index, map) => T

thisArg?

unknown

Returns

T[]