📅 You're Invited: Meet the Socket team at RSAC (April 28 – May 1).RSVP

is-object

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install
i

is-object

Checks whether a value is an object

1.0.2
latest
100

Supply Chain Security

100

Vulnerability

79

Quality

78

Maintenance

100

License

Version published
Weekly downloads
3.6M
6.09%
Maintainers
2
Weekly downloads
 
Created
Issues
1

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