setup-maven-cached/node_modules/underscore/modules/isObject.js

6 lines
163 B
JavaScript
Raw Permalink Normal View History

2022-06-28 16:39:30 +08:00
// Is a given variable an object?
export default function isObject(obj) {
var type = typeof obj;
return type === 'function' || (type === 'object' && !!obj);
}