package
Returns true if the value is an object and not an array or null.
npm install isobjectGitHub-flavored package documentation.
Across all versions.
Download trend unavailable.
Runtime metadata.
Tagged topics.
Estimated unpacked size across 1 packages.
4.9 kB
Includes dependencies.
Returns
trueif a value is an object and not an array ornull.
Please consider following this project's author, Jon Schlinkert, and starring the project to show your ❤️ and support.
Use is-plain-object if you only want objects created by the Object constructor.
npm install isobjectconst isObject = require('isobject');
isObject({}); // true
isObject(Object.create(null)); // true
isObject(new Date()); // true
isObject(/foo/); // true
isObject(); // false
isObject(null); // false
isObject([]); // false
isObject(() => {}); // false
isObject('foo'); // falseisObject(value)Returns true when value is a non-null object and is not an array. Functions return false.
Install dependencies, build the CommonJS bundle, and run the tests:
npm install
npm run build
npm testObject constructor.MIT © Jon Schlinkert
jonschlinkert
github@sellside.com