shift

.shift()

Removes the first element from this array, and returns it. If the element is not found, then null is returned.

names = [ 'Harry', 'Brian', 'Jenkins' ]

name = names.shift() // set to 'Harry'
name = names.shift() // set to 'Brian'
name = names.shift() // set to 'Jenkins'

See also

unshift - pop