cara mendeteksi browser safari di javascript

const isSafari = /^((?!chrome|android).)*safari/i.test(navigator.userAgent);
SunflowerToad