Socket
Socket
Sign inDemoInstall

isobject

Package Overview
Dependencies
Maintainers
1
Versions
11
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

isobject - npm Package Compare versions

Comparing version 0.1.0 to 0.1.1

2

.verbrc.md

@@ -6,3 +6,3 @@ # {%= name %} {%= badge("fury") %}

## Install
{%= include("install") %}
{%= include("install", {save: 'save'}) %}

@@ -9,0 +9,0 @@ ## Usage

@@ -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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc