Unshift
methodsAdds one or more items to the beginning of an ObservableArray and returns the new length. An equivalent of Array.prototype.unshift.
The
unshiftmethod raises thechangeevent. Theactionfield of the event argument is set to"add". Theitemsfield of the event argument is an array that contains the new items.
Returns:Number
—The new length of the array.