type-is-plain-object
A utility to test if a 'value' has a type of 'Object' and it was created by the Object constructor.
Installation
Using npm
npm i type-is-plain-object
Usage
In Node (CommonJS)
const isPlainObject = ; // on "undefined" -> falseconsole; // on "null" -> falseconsole; // on "number" -> falseconsole; // on "string" -> falseconsole; // on "boolean" -> falseconsole; // on "plain object" -> trueconsole; // on "array" -> falseconsole; // on "function" -> falseconsole;
In the Browser (ES6 modules):
;
Contributing
If you find any issues, feel free to submit a pull request
Author
License
This project is under the MIT License