⁘ collections

List

A list of item that does not accept duplicates nor null values.

go to → Members

Constructor

new List()

Members

read-onlycount :number

TODO

read-onlyfirst :*

TODO

read-onlyinternalArray :array

TODO

read-onlyisEmpty :boolean

TODO

read-onlylast :*

TODO

Methods

Add(p_item) → {boolean}

TODO

Parameters:
Name Type Description
p_item *

At(p_index) → {*}

TODO

Parameters:
Name Type Description
p_index number

Clear()

Clears the List

Contains(p_item)

Return whether or not the List contains the given item.

Parameters:
Name Type Description
p_item *

ForEach(p_fn, p_this, p_reverse)

Loops through all items in List. Callback should match the signature : (item, index)

Parameters:
Name Type Default Description
p_fn function
p_this object null
p_reverse boolean false

IndexOf(p_item)

TODO

Parameters:
Name Type Description
p_item *

Insert(p_item, p_index) → {*}

TODO

Parameters:
Name Type Description
p_item *
p_index *

Pop() → {*}

TODO

Remove(p_item) → {*}

TODO

Parameters:
Name Type Description
p_item *

RemoveAt(p_index) → {*}

TODO

Parameters:
Name Type Description
p_index *

Shift() → {*}

TODO