Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions src/is/types.js
Original file line number Diff line number Diff line change
Expand Up @@ -125,6 +125,13 @@ export function isWindowObject(value) {
return value != null && typeof value === 'object' && 'setInterval' in value;
}

/**
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should not be done here, but rather environment.js as mentioned in the issue.

* Returns whether the current browser is Firefox
*/
export function isFirefox() {
return typeof InstallTrigger !== 'undefined';
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Use isUndefined from types.js

}

export default {
object: isObject,
array: isArray,
Expand All @@ -142,4 +149,5 @@ export default {
regexp: isRegexp,
undefined: isUndefined,
windowObject: isWindowObject,
firefox: isFirefox,
};