Skip to main content

@terascope/data-mate / core/interfaces / ReadonlySparseMap

Interface: ReadonlySparseMap<V>

Defined in: data-mate/src/core/interfaces.ts:7

Extends

  • Iterable<[number, V]>

Type Parameters

Type Parameter
V

Properties

PropertyTypeDefined in
lengthnumberdata-mate/src/core/interfaces.ts:9
sizenumberdata-mate/src/core/interfaces.ts:10

Methods

[iterator]()

[iterator](): IterableIterator<[number, V]>

Defined in: data-mate/src/core/interfaces.ts:18

Returns

IterableIterator<[number, V]>

Overrides

Iterable.[iterator]


entries()

entries(): IterableIterator<[number, V]>

Defined in: data-mate/src/core/interfaces.ts:17

Returns

IterableIterator<[number, V]>


forEach()

forEach(callback, scope?): void

Defined in: data-mate/src/core/interfaces.ts:14

Parameters

ParameterType
callback(value, key, set) => void
scope?any

Returns

void


get()

get(key): undefined | V

Defined in: data-mate/src/core/interfaces.ts:13

Parameters

ParameterType
keynumber

Returns

undefined | V


has()

has(key): boolean

Defined in: data-mate/src/core/interfaces.ts:12

Parameters

ParameterType
keynumber

Returns

boolean


inspect()

inspect(): any

Defined in: data-mate/src/core/interfaces.ts:19

Returns

any


keys()

keys(): IterableIterator<number>

Defined in: data-mate/src/core/interfaces.ts:15

Returns

IterableIterator<number>


values()

values(): IterableIterator<V>

Defined in: data-mate/src/core/interfaces.ts:16

Returns

IterableIterator<V>