Method refresher

Remember Array().removeLast()? It pops the last item off an instance of an array:

var numbers = [1, 2, 3] numbers.removeLast()

let newArray = numbers // [1, 2]

Methods like removeLast() help you control the data in the structure.

results matching ""

    No results matching ""