Why does Typescript warn me that pop() might return undefined even after I\'ve verified that I\'m removing an element from a non-empty array?
pop()
undefined