@univerjscoreclassesLruhelper

@univerjs/core v0.5.0-beta.1Docs


Class: LRUHelper

Constructors

new LRUHelper()

new LRUHelper(): LRUHelper

Returns

LRUHelper

Methods

getValueType()

static getValueType(value): string

Parameters

ParameterType
valueany

Returns

string

Defined in

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


hasLength()

static hasLength(array, size): boolean

Parameters

ParameterType
arrayunknown[]
sizenumber

Returns

boolean

Defined in

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


isIterable()

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

Type Parameters

Type Parameter
T

Parameters

ParameterType
value?any

Returns

value is Iterable<T, any, any>

Defined in

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


isNumber()

static isNumber(value?): value is number

Parameters

ParameterType
value?any

Returns

value is number

Defined in

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


isObject()

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

Type Parameters

Type ParameterDefault type
Tobject

Parameters

ParameterType
value?any

Returns

value is T

Defined in

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