js-util

Home > rc-js-util > CircularFIFOStack > pop

CircularFIFOStack.pop() method

Remove the bottom element in the stack and return it.

Signature:

pop(): TValue;

Returns:

TValue

Remarks

Attempting to pop an empty stack is considered exceptional regardless of mode. You can call getIsEmpty or getRemainingCapacity to determine if pop is safe to call.