Skip to content

Commit

Permalink
fix: toReversed is not available in older environments
Browse files Browse the repository at this point in the history
  • Loading branch information
vighnesh153 committed Dec 30, 2023
1 parent a4f7d07 commit 1d1dda2
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ export class Stack<T> {
return returnValue;
})
// Should return in reverse as we want the order to be from bottom to top of the stack
.toReversed()
.reverse()
);
}

Expand Down

0 comments on commit 1d1dda2

Please sign in to comment.