🚀 Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more
Socket
DemoInstallSign in
Socket

is-object

Package Overview
Dependencies
Maintainers
2
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

is-object

Checks whether a value is an object

1.0.2
latest
Source
npm
Version published
Weekly downloads
3.5M
-14.49%
Maintainers
2
Weekly downloads
 
Created

What is is-object?

The is-object npm package is a simple utility that checks if a given value is an object. It is useful for type-checking in JavaScript, ensuring that a value is an object and not another type like a string, number, or array.

What are is-object's main functionalities?

Basic Object Check

This feature allows you to check if a given value is an object. The function returns true for plain objects and false for arrays, null, strings, and other non-object types.

const isObject = require('is-object');

console.log(isObject({})); // true
console.log(isObject([])); // false
console.log(isObject(null)); // false
console.log(isObject('string')); // false

Other packages similar to is-object

FAQs

Package last updated on 02 Dec 2020

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts