Open an entity view in javascript power apps model driven app

Below code can be used to Open an entity view in javascript power apps model driven app. Hope this helps.