Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Documentation: What do peek() and peekPriority() return on empty heap #59

Open
Feuermurmel opened this issue Dec 30, 2023 · 0 comments
Open

Comments

@Feuermurmel
Copy link

I could not find a description on what peek() and peekPriority() return when the heap is empty. pop() has a return type of number | undefined, and is documented to return undefined if the heap is emtpy, but peek() and peekPriority() both return just number.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
1 participant