The shift() method removes the first element from an array and returns that removed element. This method changes the length of the array.
Syntax:arr.shift()
The unshift() method adds one or more elements to the beginning of an array and returns the new length of the array.
Syntax:arr.unshift(element1[, ...[, elementN]])
Messages for
Property<T, R>
:added(instance, propertyName)
updated(instance, propertyName)
deleted(instance, propertyName)
Messages for value of type
T
:changed(value, oldValue)
Messages for value of type
T : List<T>
:spliced(items, startIndex, removedItems, addedCount)
pushed
popped
unshifted
shifted