add

open actual fun add(element: E): Boolean (source)

Overrides AbstractMutableList.add

Overrides MutableList.add

Platform and version requirements: JS

Adds the specified element to the collection.

Return true if the element has been added, false if the collection does not support duplicates and the element is already contained in the collection.

open actual fun add(index: Int, element: E) (source)

Overrides AbstractMutableList.add

Overrides MutableList.add

Platform and version requirements: JS

Inserts an element into the list at the specified index.