Skip to content

len

len<T>(value?): uint64

Get the byte length of a type or value.

Type parameters

T

The type to get the length of. MUST be static if no value is given.

Parameters

value?: any

The value to get the length of. May be omitted if a static type is given as T

Returns

uint64

Source

types/global.d.ts:1050