MS Edge (EdgeHTML) JavaScript Method:
edge = !!(window.chrome.app) && ('msHyphenateLimitChars' in document.body.style);
If MS Edge (EdgeHTML) is detected, the above will be red. This is not for Edge Chromium.
handy code from webmechanic