您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符
Christian Ziermann b8da0c7023 Initial commit 4 年前
..
index.d.ts Initial commit 4 年前
index.js Initial commit 4 年前
license Initial commit 4 年前
package.json Initial commit 4 年前
readme.md Initial commit 4 年前

readme.md

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 is-obj

Usage

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

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

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

isObject('foo');
//=> false
  • is - Type check values

License

MIT © Sindre Sorhus