API Reference
@univerjs
@univerjs/core
classes
Lruhelper

@univerjs/core v0.4.2Docs


Class: LRUHelper

Constructors

new LRUHelper()

new LRUHelper(): LRUHelper

Returns

LRUHelper

Methods

getValueType()

static getValueType(value): string

Parameters

ParameterType
valueany

Returns

string

Defined in

submodules/univer/packages/core/src/shared/lru/lru-map.ts:390 (opens in a new tab)


hasLength()

static hasLength(array, size): boolean

Parameters

ParameterType
arrayunknown[]
sizenumber

Returns

boolean

Defined in

submodules/univer/packages/core/src/shared/lru/lru-map.ts:386 (opens in a new tab)


isIterable()

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

Type Parameters

Type Parameter
T

Parameters

ParameterType
value?any

Returns

value is Iterable<T>

Defined in

submodules/univer/packages/core/src/shared/lru/lru-map.ts:398 (opens in a new tab)


isNumber()

static isNumber(value?): value is number

Parameters

ParameterType
value?any

Returns

value is number

Defined in

submodules/univer/packages/core/src/shared/lru/lru-map.ts:402 (opens in a new tab)


isObject()

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

Type Parameters

Type ParameterDefault type
Tobject

Parameters

ParameterType
value?any

Returns

value is T

Defined in

submodules/univer/packages/core/src/shared/lru/lru-map.ts:394 (opens in a new tab)


Copyright © 2021-2024 DreamNum Co,Ltd. All Rights Reserved.