diff --git a/src/is/types.js b/src/is/types.js index 8d117e2..8df3c47 100644 --- a/src/is/types.js +++ b/src/is/types.js @@ -125,6 +125,13 @@ export function isWindowObject(value) { return value != null && typeof value === 'object' && 'setInterval' in value; } +/** + * Returns whether the current browser is Firefox + */ +export function isFirefox() { + return typeof InstallTrigger !== 'undefined'; +} + export default { object: isObject, array: isArray, @@ -142,4 +149,5 @@ export default { regexp: isRegexp, undefined: isUndefined, windowObject: isWindowObject, + firefox: isFirefox, };