Skip to content

Latest commit

 

History

History
25 lines (17 loc) · 590 Bytes

File metadata and controls

25 lines (17 loc) · 590 Bytes
hide_title true
custom_edit_url
pagination_prev
pagination_next

Home > @rushstack/node-core-library > MinimumHeap > peek

MinimumHeap.peek() method

Retrieves the root item from the heap without removing it.

Signature:

peek(): T | undefined;

Returns:

T | undefined

the root item, or undefined if the heap is empty