How to check/log navigation tree and move to specific page by removing middle pages IONIC 5

Hi everyone,

In ionic v3 and v4, we can use Nav Control (popTo, getByIndex, length) to get specific information about the navigation stack and we can move between them by removing a page from the stack.

Is there any way, Ionic v5 supports this functionality? If yes then please share details.