API Reference > bentleyjs-core > Collections > PriorityQueue > pop pop Method Removes the front-most element off of the queue and returns it. pop(): T | undefined Returns - T | undefined The front-most element, or undefined if the queue is empty. Defined in core/bentley/src/PriorityQueue.ts Line 126 Last Updated: 15 June, 2021