Use Array.prototype.shift() where applicable.