MutableList18
Constructors
Models
Elements
takeconstTakes a single element from the beginning of the MutableList.takeAllconstTakes all elements from the MutableList and returns them as an array.takeNconstTakes up to N elements from the beginning of the MutableList and returns them as an array.takeNVoidconstRemoves up to n elements from the beginning of the MutableList without returning them.toArrayconstCopies all current elements of the MutableList into a new array without modifying the list.toArrayNconstCopies up to n elements from the beginning of the MutableList into a new array without modifying the list.Mutations
appendconstAppends an element to the end of the MutableList.appendAllconstAppends all elements from an iterable to the end of the MutableList.appendAllUnsafeconstAppends all elements from a ReadonlyArray to the end of the MutableList.clearconstRemoves all elements from the MutableList, resetting it to an empty state.filterconstFilters the MutableList in place, keeping only elements that satisfy the predicate.prependconstPrepends an element to the beginning of the MutableList.prependAllconstPrepends all elements from an iterable to the beginning of the MutableList.prependAllUnsafeconstPrepends all elements from a ReadonlyArray to the beginning of the MutableList.removeconstRemoves all occurrences of a value from the MutableList using JavaScript strict equality semantics.