6 lines
125 B
JavaScript
6 lines
125 B
JavaScript
'use strict';
|
|
|
|
module.exports = function isObject(x) {
|
|
return !!x && (typeof x === 'function' || typeof x === 'object');
|
|
};
|