Everyone know how to modify view in SharePoint document list or any custom list. I.e. Enter the list -> click modify view -> and filter based on name etc.
However, I am trying to achieve this in a app part in SharePoint Online.
It would be nice, if anyone can give me an idea how I can apply filter [modify view] programatically using JavaScript in SharePoint online app part.