New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

is-it-object

Package Overview
Dependencies
Maintainers
1
Versions
14
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

is-it-object

Tiny package which helps to check that value is an object in JavaScript.

latest
Source
npmnpm
Version
2.1.7
Version published
Weekly downloads
25
525%
Maintainers
1
Weekly downloads
 
Created
Source

isObject

NPM

Build Status Coverage Status Maintainability PRs Welcome

Most powerful way to check that value is an object in javascript.
More info about motivation for this repo you can find here.

Installation

npm i is-it-object

Usage

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

isObject({});                              // true
isObject([]);                              // false
isObject(undefined);                       // false
isObject(null);                            // false
isObject(0);                               // false
isObject('');                              // false
isObject(/.*/);                            // true
isObject(new Date());                      // true
isObject(function () {});                  // false
isObject(Object.create({}));               // true
isObject(Object.create(null));             // true
isObject(Object.create(Object.prototype)); // true

More information available here.

Tests

npm test

Keywords

js

FAQs

Package last updated on 19 Nov 2019

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