putil-isplainobject
v1.1.5
Published
Simple and lightweight utility for checking given object is plain
Downloads
810
Readme
putil-isplainobject
Simple and lightweight utility for checking given object is plain
Installation
npm install putil-isplainobject --save
Usage
const isplainobject = require('putil-isplainobject');
console.log( isplainobject({a: 1})); // true
console.log( isplainobject(1)); // false
console.log( isplainobject('a')); // false
console.log( isplainobject(new MyClass())); // false
console.log( isplainobject(MyClass)); // false
Node Compatibility
- node
>= 6.x
;