1.0.3 • Published 8 years ago

brisky-is-plain-obj v1.0.3

Weekly downloads
5
License
ISC
Repository
github
Last release
8 years ago

brisky-is-plain-obj

Build Status js-standard-style npm version Coverage Status

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