<!-- Do not edit this file. It is automatically generated by API Documenter. -->

[Home](./index.md) &gt; [rc-js-util](./rc-js-util.md) &gt; [IFIFOStack](./rc-js-util.ififostack.md) &gt; [pop](./rc-js-util.ififostack.pop.md)

## IFIFOStack.pop() method

Remove the first inserted element in the stack and return it.

**Signature:**

```typescript
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.

