diff options
Diffstat (limited to 'node_modules/superagent/lib/is-object.js')
| -rw-r--r-- | node_modules/superagent/lib/is-object.js | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/node_modules/superagent/lib/is-object.js b/node_modules/superagent/lib/is-object.js new file mode 100644 index 0000000..dff357c --- /dev/null +++ b/node_modules/superagent/lib/is-object.js @@ -0,0 +1,13 @@ +/** + * Check if `obj` is an object. + * + * @param {Object} obj + * @return {Boolean} + * @api private + */ + +function isObject(obj) { + return null !== obj && 'object' === typeof obj; +} + +module.exports = isObject; |
