pentest-distro-builder/filesystem/root/.vscode/extensions/ms-vscode.powershell-1.8.4/node_modules/is-obj
2018-10-17 15:35:13 -06:00
..
index.js Parrot preseed changes 2018-10-17 15:35:13 -06:00
package.json Parrot preseed changes 2018-10-17 15:35:13 -06:00
readme.md Parrot preseed changes 2018-10-17 15:35:13 -06:00

is-obj Build Status

Check if a value is an object

Keep in mind that array, function, regexp, etc, are objects in JavaScript.
See is-plain-obj if you want to check for plain objects.

Install

$ npm install --save is-obj

Usage

const isObj = require('is-obj');

isObj({foo: 'bar'});
//=> true

isObj([1, 2, 3]);
//=> true

isObj('foo');
//=> false

License

MIT © Sindre Sorhus