aboutsummaryrefslogtreecommitdiff
path: root/node_modules/is-obj/index.js
diff options
context:
space:
mode:
Diffstat (limited to 'node_modules/is-obj/index.js')
-rw-r--r--node_modules/is-obj/index.js5
1 files changed, 5 insertions, 0 deletions
diff --git a/node_modules/is-obj/index.js b/node_modules/is-obj/index.js
new file mode 100644
index 0000000..4d023bc
--- /dev/null
+++ b/node_modules/is-obj/index.js
@@ -0,0 +1,5 @@
+'use strict';
+module.exports = function (x) {
+ var type = typeof x;
+ return x !== null && (type === 'object' || type === 'function');
+};