ractive.shift()
edit this pageThe Ractive equivalent to Array.shift that removes an element from the beginning of the array at the given keypath and triggers an update event.
ractive.shift( keypath )
Returns a
Promise(see Promises) that will resolve with the removed element after the update is complete.keypath
StringThe keypath of the array to change, e.g.
listororder.items.
If the given keypath does not resolve to an array, an error will be thrown.