removeLastObject() Removes the object with the highest-valued index in the array Declarationfunc removeLastObject() See AlsoRemoving ObjectsremoveAllObjects()remove(_:)remove(_:in:)removeObject(at:)removeObjects(at:)removeObject(identicalTo:)removeObject(identicalTo:in:)removeObjects(fromIndices:numIndices:)removeObjects(in:)removeObjects(in:)