brisky-is-plain-obj
v1.0.3
Published
Checks whether an object is a plain object (excludes streams, buffers, vigour-base objects, and null)
Downloads
41
Readme
brisky-is-plain-obj
var plain = isPlain(obj)
Checks whether an object is a plain object (excludes streams, buffers, vigour-base objects and null)
- obj (object) - the object to check
- returns (boolean) plain -
true
if obj is a plain object,false
otherwise
const isPlain = require('brisky-is-plain-obj')
isPlain({}) // true
isPlain(new Base({})) // false