How can test the browser and run my function only for firefox?

```
function myFunc(){
console.log('this should be run only on firefox browser');
}

```

---

I came to know jquery.browser is deprecated and says use support instead so I tried $.support.mozilla not work. So how can I do it with support method?