.gitignore added
[dotfiles/.git] / .config / coc / extensions / node_modules / coc-prettier / node_modules / is-plain-obj / 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
5 An 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
18 var isPlainObj = require('is-plain-obj');
19
20 isPlainObj({foo: 'bar'});
21 //=> true
22
23 isPlainObj([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
35 MIT © [Sindre Sorhus](http://sindresorhus.com)