aboutsummaryrefslogtreecommitdiff
path: root/node_modules/superagent/lib/is-object.js
blob: dff357c2c468954a65aa9e59ffcf2b6b26650be1 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
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;