• Home
  • History
  • Annotate
Name Date Size #Lines LOC

..22-Nov-2021-

licenseH A D22-Nov-20211.1 KiB2217

package.jsonH A D22-Nov-2021604 3736

readme.mdH A D22-Nov-2021631 3619

readme.md

1# is-plain-obj [![Build Status](https://travis-ci.org/sindresorhus/is-plain-obj.svg?branch=master)](https://travis-ci.org/sindresorhus/is-plain-obj)
2
3> Check if a value is a plain object
4
5An object is plain if it's created by either `{}`, `new Object()` or `Object.create(null)`.
6
7
8## Install
9
10```
11$ npm install --save is-plain-obj
12```
13
14
15## Usage
16
17```js
18var isPlainObj = require('is-plain-obj');
19
20isPlainObj({foo: 'bar'});
21//=> true
22
23isPlainObj([1, 2, 3]);
24//=> false
25```
26
27
28## Related
29
30- [is-obj](https://github.com/sindresorhus/is-obj) - Check if a value is an object
31
32
33## License
34
35MIT © [Sindre Sorhus](http://sindresorhus.com)
36