16 lines
224 B
JavaScript
16 lines
224 B
JavaScript
|
'use strict';
|
||
|
|
||
|
/**
|
||
|
* 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;
|