@univerjscoreclassesLruhelper

@univerjs/core v0.5.4


Class: LRUHelper

Defined in: packages/api/tmp/univer-pro/submodules/univer/packages/core/src/shared/lru/lru-map.ts:385

Constructors

new LRUHelper()

new LRUHelper(): LRUHelper

Returns

LRUHelper

Methods

getValueType()

static getValueType(value): string

Defined in: packages/api/tmp/univer-pro/submodules/univer/packages/core/src/shared/lru/lru-map.ts:390

Parameters

ParameterType
valueany

Returns

string


hasLength()

static hasLength(array, size): boolean

Defined in: packages/api/tmp/univer-pro/submodules/univer/packages/core/src/shared/lru/lru-map.ts:386

Parameters

ParameterType
arrayunknown[]
sizenumber

Returns

boolean


isIterable()

static isIterable<T>(value?): value is Iterable<T>

Defined in: packages/api/tmp/univer-pro/submodules/univer/packages/core/src/shared/lru/lru-map.ts:398

Type Parameters

Type Parameter
T

Parameters

ParameterType
value?any

Returns

value is Iterable<T>


isNumber()

static isNumber(value?): value is number

Defined in: packages/api/tmp/univer-pro/submodules/univer/packages/core/src/shared/lru/lru-map.ts:402

Parameters

ParameterType
value?any

Returns

value is number


isObject()

static isObject<T>(value?): value is T

Defined in: packages/api/tmp/univer-pro/submodules/univer/packages/core/src/shared/lru/lru-map.ts:394

Type Parameters

Type ParameterDefault type
Tobject

Parameters

ParameterType
value?any

Returns

value is T