SharePoint Online – Getting current logged-in user’s group details using REST api and JavaScript

SharePoint Online – Getting current logged-in user’s group details using REST api and JavaScript