We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 540ef65 commit ff8fe80Copy full SHA for ff8fe80
lib/utils/index.js
@@ -21,6 +21,15 @@ export function isObject(item) {
21
return (item && typeof item === 'object' && !Array.isArray(item) && item !== null);
22
}
23
24
+/**
25
+ * Simple is function check
26
+ * @param item
27
+ * @returns {*|boolean}
28
+ */
29
+export function isFunction(item) {
30
+ return (item && typeof item === 'function');
31
+}
32
+
33
// noinspection Eslint
34
export const windowOrGlobal = (typeof self === 'object' && self.self === self && self) || (typeof global === 'object' && global.global === global && global) || this;
35
0 commit comments