Socket
Socket
Sign inDemoInstall

@common-utilities/is-object

Package Overview
Dependencies
0
Maintainers
1
Versions
8
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 0.0.3 to 0.0.4

11

package.json
{
"name": "@common-utilities/is-object",
"version": "0.0.3",
"version": "0.0.4",
"description": "Basic implementations of common utility function that check if data is an object 🎛",

@@ -33,3 +33,10 @@ "main": "dist/index.js",

},
"gitHead": "896fa6971331656a6762f2215104bf5d01fbe21c"
"gitHead": "afac5756e6666406c5146e13349ddf2b31634bdc",
"keywords": [
"object",
"array",
"is-object",
"utility",
"functional"
]
}

8

README.md

@@ -17,10 +17,2 @@ # @common-utilities/is-object 🧰🎛

## Function
```javascript
const isArray = (item) => Array.isArray(item)
const isOfObjectType = (item) => item !== null && typeof item === 'object'
const isObject = (item) => isOfObjectType(item) && !isArray(item)
```
## Usage

@@ -27,0 +19,0 @@

SocketSocket SOC 2 Logo

Product

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc