We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 227798d commit f6ce4b8Copy full SHA for f6ce4b8
1 file changed
lib/utils/index.js
@@ -13,6 +13,9 @@ const _handler = (resolve, reject, err, resp) => {
13
};
14
15
16
+// noinspection Eslint
17
+export const windowOrGlobal = (typeof self === 'object' && self.self === self && self) || (typeof global === 'object' && global.global === global && global) || this;
18
+
19
/**
20
* Makes an objects keys it's values
21
* @param object
0 commit comments