@univerjs/core v0.4.2 • Docs
Class: LRUHelper
Constructors
new LRUHelper()
new LRUHelper(): LRUHelper
Returns
Methods
getValueType()
static getValueType(value): string
Parameters
Parameter | Type |
---|---|
value | any |
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
Parameter | Type |
---|---|
array | unknown [] |
size | number |
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
Parameter | Type |
---|---|
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
Parameter | Type |
---|---|
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 Parameter | Default type |
---|---|
T | object |
Parameters
Parameter | Type |
---|---|
value ? | any |
Returns
value is T
Defined in
submodules/univer/packages/core/src/shared/lru/lru-map.ts:394 (opens in a new tab)