Skip to content

Class: LeafList

Implements

Table of contents

Constructors

Properties

Accessors

Methods

Constructors

constructor

new LeafList(item?): LeafList

Parameters

NameType
item?ILeaf | ILeaf[]

Returns

LeafList

Defined in

leafer/packages/list/src/LeafList.ts:10

Properties

list

list: ILeaf[]

Implementation of

ILeafList.list

Defined in

leafer/packages/list/src/LeafList.ts:5


keys

keys: INumberMap

Implementation of

ILeafList.keys

Defined in

leafer/packages/list/src/LeafList.ts:6

Accessors

length

get length(): number

Returns

number

Implementation of

ILeafList.length

Defined in

leafer/packages/list/src/LeafList.ts:8

Methods

has

has(leaf): boolean

Parameters

NameType
leafILeaf

Returns

boolean

Implementation of

ILeafList.has

Defined in

leafer/packages/list/src/LeafList.ts:15


indexAt

indexAt(index): ILeaf

Parameters

NameType
indexnumber

Returns

ILeaf

Implementation of

ILeafList.indexAt

Defined in

leafer/packages/list/src/LeafList.ts:19


indexOf

indexOf(leaf): number

Parameters

NameType
leafILeaf

Returns

number

Implementation of

ILeafList.indexOf

Defined in

leafer/packages/list/src/LeafList.ts:23


add

add(leaf): void

Parameters

NameType
leafILeaf

Returns

void

Implementation of

ILeafList.add

Defined in

leafer/packages/list/src/LeafList.ts:29


addAt

addAt(leaf, index?): void

Parameters

NameTypeDefault value
leafILeafundefined
indexnumber0

Returns

void

Implementation of

ILeafList.addAt

Defined in

leafer/packages/list/src/LeafList.ts:37


addList

addList(list): void

Parameters

NameType
listILeaf[]

Returns

void

Implementation of

ILeafList.addList

Defined in

leafer/packages/list/src/LeafList.ts:52


remove

remove(leaf): void

Parameters

NameType
leafILeaf

Returns

void

Implementation of

ILeafList.remove

Defined in

leafer/packages/list/src/LeafList.ts:57


sort

sort(reverse?): void

Parameters

NameType
reverse?boolean

Returns

void

Implementation of

ILeafList.sort

Defined in

leafer/packages/list/src/LeafList.ts:73


forEach

forEach(itemCallback): void

Parameters

NameType
itemCallbackILeafListItemCallback

Returns

void

Implementation of

ILeafList.forEach

Defined in

leafer/packages/list/src/LeafList.ts:82


clone

clone(): ILeafList

Returns

ILeafList

Implementation of

ILeafList.clone

Defined in

leafer/packages/list/src/LeafList.ts:86


update

update(): void

Returns

void

Implementation of

ILeafList.update

Defined in

leafer/packages/list/src/LeafList.ts:94


reset

reset(): void

Returns

void

Implementation of

ILeafList.reset

Defined in

leafer/packages/list/src/LeafList.ts:100


destroy

destroy(): void

Returns

void

Implementation of

ILeafList.destroy

Defined in

leafer/packages/list/src/LeafList.ts:105

Released under the MIT License.