Name | Date | Size | #Lines | LOC | ||
---|---|---|---|---|---|---|
.. | 22-Nov-2021 | - | ||||
license | H A D | 22-Nov-2021 | 1.1 KiB | 22 | 17 | |
package.json | H A D | 22-Nov-2021 | 604 | 37 | 36 | |
readme.md | H A D | 22-Nov-2021 | 631 | 36 | 19 |
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