package.modules.isObject.js Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of underscore Show documentation
Show all versions of underscore Show documentation
JavaScript's functional programming helper library.
The newest version!
// Is a given variable an object?
export default function isObject(obj) {
var type = typeof obj;
return type === 'function' || (type === 'object' && !!obj);
}