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.1 to 0.0.2

4

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

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

},
"gitHead": "094a0042033287b91a3f06a45f71e51596c3d100"
"gitHead": "3de4a71ca5c0192f988bfdede188fc72f941f9a4"
}

@@ -21,3 +21,3 @@ # @common-utilities/is-object 🧰🎛

```javascript
```typescript
const isArray = (item) => Array.isArray(item)

@@ -40,5 +40,5 @@ const isOfObjectType = (item) => item !== null && typeof item === 'object'

```javascript
const result = isArray(['test', 'test']) // true
const result = isArray({ foo: 'test' }) // false
```typescript
isArray(['test', 'test']) // true
isArray({ foo: 'test' }) // false
```

@@ -48,9 +48,9 @@

```javascript
const result = isOfObjectType(['test', 'test']) // true
const result = isOfObjectType({ foo: 'test' }) // true
const result = isOfObjectType(9) // false
const result = isOfObjectType('string') // false
const result = isOfObjectType(null) // false
const result = isOfObjectType(undefined) // false
```typescript
isOfObjectType(['test', 'test']) // true
isOfObjectType({ foo: 'test' }) // true
isOfObjectType(9) // false
isOfObjectType('string') // false
isOfObjectType(null) // false
isOfObjectType(undefined) // false
```

@@ -60,5 +60,5 @@

```javascript
const result = isObject(['test', 'test']) // false
const result = isObject({ foo: 'test' }) // true
```typescript
isObject(['test', 'test']) // false
isObject({ foo: 'test' }) // true
```

@@ -72,3 +72,3 @@

Just simple typed functional well documented and tested javascript utility functions—so why not use 'em?
Simple, typed, functional, documented, and tested javascript utility functions.

@@ -75,0 +75,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