is-firefox
Check if browser is Firefox
User agent sniffing is considered bad practice and should be avoided if possible.
Install
$ npm install --save is-firefox
Usage
var isFirefox = require('is-firefox');
console.log(isFirefox);
//=> false
Check if browser is Firefox
$ npm install --save is-firefox
var isFirefox = require('is-firefox');
console.log(isFirefox);
//=> false
Bytes is a JavaScript newsletter you'll actually enjoy reading.
Delivered every Monday, for free.