2021-12-07 13:18:08 -05:00

8 lines
174 B
JavaScript

// Is a given variable an object?
function isObject(obj) {
var type = typeof obj;
return type === 'function' || type === 'object' && !!obj;
}
module.exports = isObject;