Socket
Socket
Sign inDemoInstall

lodash.isplainobject

Package Overview
Dependencies
5
Maintainers
5
Versions
19
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

lodash.isplainobject

The modern build of lodash’s `_.isPlainObject` as a module.


Version published
Maintainers
5
Weekly downloads
15,363,079
decreased by-16.78%
Install size
48.0 kB

Weekly downloads

Package description

What is lodash.isplainobject?

The lodash.isplainobject npm package is a module that provides a function to check if a given value is a plain object, that is, an object created by the Object constructor or one with a null prototype.

What are lodash.isplainobject's main functionalities?

Check for plain objects

This feature allows you to verify if a value is a plain object. It returns true for objects created by the Object constructor or with a null prototype and false for any other type of value, including arrays, functions, and instances of built-in JavaScript types like Date.

const isPlainObject = require('lodash.isplainobject');

console.log(isPlainObject({})); // true
console.log(isPlainObject(Object.create(null))); // true
console.log(isPlainObject([1, 2, 3])); // false
console.log(isPlainObject(Function)); // false
console.log(isPlainObject(new Date())); // false

Other packages similar to lodash.isplainobject

Readme

Source

lodash.isplainobject v3.0.2

The modern build of lodash’s _.isPlainObject exported as a Node.js/io.js module.

Installation

Using npm:

$ {sudo -H} npm i -g npm
$ npm i --save lodash.isplainobject

In Node.js/io.js:

var isPlainObject = require('lodash.isplainobject');

See the documentation or package source for more details.

Keywords

FAQs

Last updated on 16 Apr 2015

Did you know?

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

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