method Array.pop
Private
Array.pop(): T | undefined

Removes the last element from an array and returns it. If the array is empty, undefined is returned and the array is not modified.

Return Type

T | undefined