Sha256: c2fea68adf8493d73a98bd28db75a53027921b4fc4338e9481f6067b43459f2a
Contents?: true
Size: 631 Bytes
Versions: 60
Compression:
Stored size: 631 Bytes
Contents
# is-plain-obj [](https://travis-ci.org/sindresorhus/is-plain-obj) > Check if a value is a plain object An object is plain if it's created by either `{}`, `new Object()` or `Object.create(null)`. ## Install ``` $ npm install --save is-plain-obj ``` ## Usage ```js var isPlainObj = require('is-plain-obj'); isPlainObj({foo: 'bar'}); //=> true isPlainObj([1, 2, 3]); //=> false ``` ## Related - [is-obj](https://github.com/sindresorhus/is-obj) - Check if a value is an object ## License MIT © [Sindre Sorhus](http://sindresorhus.com)
Version data entries
60 entries across 59 versions & 14 rubygems