> For the complete documentation index, see [llms.txt](https://lodash.shujuwajue.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://lodash.shujuwajue.com/lang/isplainobject.md).

# \_.isPlainObject（是否是普通对象）

**语法：**

```javascript
_.isPlainObject(value)
```

**源代码链接：**[source](https://github.com/lodash/lodash/blob/4.17.10/lodash.js#L12035)

**npm包链接：**[npm package](https://www.npmjs.com/package/lodash.isplainobject)

**描述：**

检查`value`是否是普通对象。 也就是说该对象由`Object`构造函数创建，或者`[[Prototype]]`为`null`。

**开始版本：**&#x30;.8.0

**参数：**

* `value (*)`: 要检查的值。

**返回值：**

* `(boolean)`: 如果 value 为一个普通对象，那么返回 true，否则返回 false。

**例子：**

```javascript
function Foo() {
  this.a = 1;
}

_.isPlainObject(new Foo);
// => false

_.isPlainObject([1, 2, 3]);
// => false

_.isPlainObject({ 'x': 0, 'y': 0 });
// => true

_.isPlainObject(Object.create(null));
// => true
```
