IList interface

Extends

Methods

add(TItem)
all((item: TItem) => boolean)
any((item: TItem, index: number) => boolean)
clear()
clone()
concat(List<TItem>)
concatArray(TItem[])
dispose(string)

Performs cleanup operations on this instance

first()
forEach((item: TItem, index: number) => void)
get(number)
insertAt(number, TItem)
isDisposed()
join(string)
last()
length()
onAdded(() => void)
onDisposed(() => void)
onRemoved(() => void)
orderBy((a: TItem, b: TItem) => number)
orderByDesc((a: TItem, b: TItem) => number)
remove(number, number)
removeAt(number)
removeFirst()
removeLast()
select((item: TItem, index: number) => T2)
toArray()
where((item: TItem, index: number) => boolean)

Method Details

add(TItem)

function add(item: TItem)

Parameters

item
TItem

all((item: TItem) => boolean)

function all(callback: (item: TItem) => boolean)

Parameters

callback
(item: TItem) => boolean

Returns

boolean

any((item: TItem, index: number) => boolean)

function any(callback?: (item: TItem, index: number) => boolean)

Parameters

callback
(item: TItem, index: number) => boolean

Returns

boolean

clear()

function clear()

clone()

function clone()

Returns

List<TItem>

concat(List<TItem>)

function concat(list: List<TItem>)

Parameters

list
List<TItem>

Returns

List<TItem>

concatArray(TItem[])

function concatArray(array: TItem[])

Parameters

array
TItem[]

Returns

List<TItem>

dispose(string)

Performs cleanup operations on this instance

function dispose(reason?: string)

Parameters

reason
string

first()

function first()

Returns

TItem

forEach((item: TItem, index: number) => void)

function forEach(callback: (item: TItem, index: number) => void)

Parameters

callback
(item: TItem, index: number) => void

get(number)

function get(itemIndex: number)

Parameters

itemIndex
number

Returns

TItem

insertAt(number, TItem)

function insertAt(index: number, item: TItem)

Parameters

index
number
item
TItem

isDisposed()

function isDisposed()

Returns

boolean

join(string)

function join(seperator?: string)

Parameters

seperator
string

Returns

string

last()

function last()

Returns

TItem

length()

function length()

Returns

number

onAdded(() => void)

function onAdded(addedCallback: () => void)

Parameters

addedCallback
() => void

Returns

onDisposed(() => void)

function onDisposed(disposedCallback: () => void)

Parameters

disposedCallback
() => void

Returns

onRemoved(() => void)

function onRemoved(removedCallback: () => void)

Parameters

removedCallback
() => void

Returns

orderBy((a: TItem, b: TItem) => number)

function orderBy(compareFn: (a: TItem, b: TItem) => number)

Parameters

compareFn
(a: TItem, b: TItem) => number

Returns

List<TItem>

orderByDesc((a: TItem, b: TItem) => number)

function orderByDesc(compareFn: (a: TItem, b: TItem) => number)

Parameters

compareFn
(a: TItem, b: TItem) => number

Returns

List<TItem>

remove(number, number)

function remove(index: number, count: number)

Parameters

index
number
count
number

Returns

TItem[]

removeAt(number)

function removeAt(index: number)

Parameters

index
number

Returns

TItem

removeFirst()

function removeFirst()

Returns

TItem

removeLast()

function removeLast()

Returns

TItem

select((item: TItem, index: number) => T2)

function select<T2>(callback: (item: TItem, index: number) => T2)

Parameters

callback
(item: TItem, index: number) => T2

Returns

List<T2>

toArray()

function toArray()

Returns

TItem[]

where((item: TItem, index: number) => boolean)

function where(callback: (item: TItem, index: number) => boolean)

Parameters

callback
(item: TItem, index: number) => boolean

Returns

List<TItem>