Comparing version 0.1.0 to 0.1.1
@@ -6,3 +6,3 @@ # {%= name %} {%= badge("fury") %} | ||
## Install | ||
{%= include("install") %} | ||
{%= include("install", {save: 'save'}) %} | ||
@@ -9,0 +9,0 @@ ## Usage |
13
index.js
@@ -0,3 +1,14 @@ | ||
/** | ||
* ## .isObject | ||
* | ||
* is the value an object, and not an array? | ||
* | ||
* @param {*} `value` | ||
* @return {Boolean} | ||
*/ | ||
module.exports = function isObject(obj) { | ||
return typeof obj === 'object' && !Array.isArray(obj) && obj !== null | ||
return typeof obj === 'object' | ||
&& !Array.isArray(obj) | ||
&& obj !== null; | ||
}; |
{ | ||
"name": "isobject", | ||
"description": "Is the value an object, and not an array or null?", | ||
"version": "0.1.0", | ||
"version": "0.1.1", | ||
"homepage": "https://github.com/jonschlinkert/isobject", | ||
@@ -6,0 +6,0 @@ "author": { |
@@ -9,3 +9,3 @@ # isobject [![NPM version](https://badge.fury.io/js/isobject.png)](http://badge.fury.io/js/isobject) | ||
```bash | ||
npm i isobject --save-dev | ||
npm i isobject --save | ||
``` | ||
@@ -12,0 +12,0 @@ |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
5035
28