1
0
mirror of https://github.com/robonen/tools.git synced 2026-03-20 19:04:46 +00:00

chore(packages/stdlib): fix code style, stack pop and peek jsdoc

This commit is contained in:
2024-10-31 00:50:08 +07:00
parent 6408c1b328
commit dd0f481e19
4 changed files with 21 additions and 2 deletions

View File

@@ -84,7 +84,7 @@ export class Stack<T> implements Iterable<T>, AsyncIterable<T> {
/**
* Pops an element from the stack
* @returns {T} The element popped from the stack
* @returns {T | undefined} The element popped from the stack
*/
public pop() {
return this.stack.pop();
@@ -92,7 +92,7 @@ export class Stack<T> implements Iterable<T>, AsyncIterable<T> {
/**
* Peeks at the top element of the stack
* @returns {T} The top element of the stack
* @returns {T | undefined} The top element of the stack
*/
public peek() {
if (this.isEmpty)