7 lines
175 B
JavaScript
7 lines
175 B
JavaScript
'use strict';
|
|
|
|
/** @type {import('es-object-atoms/isObject')} */
|
|
module.exports = function isObject(x) {
|
|
return !!x && (typeof x === 'function' || typeof x === 'object');
|
|
};
|