Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

is-plain-object

Package Overview
Dependencies
Maintainers
3
Versions
13
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

is-plain-object - npm Package Compare versions

Comparing version 3.0.1 to 4.0.0

5

index.cjs.js

@@ -22,4 +22,5 @@ 'use strict';

function isObjectObject(o) {
var type = Object.prototype.toString.call(o);
return isObject(o) === true
&& Object.prototype.toString.call(o) === '[object Object]';
&& (type === '[object Object]' || type === '[object Null]');
}

@@ -34,3 +35,3 @@

ctor = o.constructor;
if (typeof ctor !== 'function') return false;
if (ctor === undefined) return true;

@@ -37,0 +38,0 @@ // If has modified prototype

@@ -20,4 +20,5 @@ /*!

function isObjectObject(o) {
var type = Object.prototype.toString.call(o);
return isObject(o) === true
&& Object.prototype.toString.call(o) === '[object Object]';
&& (type === '[object Object]' || type === '[object Null]');
}

@@ -32,3 +33,3 @@

ctor = o.constructor;
if (typeof ctor !== 'function') return false;
if (ctor === undefined) return true;

@@ -35,0 +36,0 @@ // If has modified prototype

6

package.json
{
"name": "is-plain-object",
"description": "Returns true if an object was created by the `Object` constructor.",
"version": "3.0.1",
"description": "Returns true if an object was created by the `Object` constructor, or Object.create(null).",
"version": "4.0.0",
"homepage": "https://github.com/jonschlinkert/is-plain-object",

@@ -45,3 +45,3 @@ "author": "Jon Schlinkert (https://github.com/jonschlinkert)",

"mocha-headless-chrome": "^3.1.0",
"rollup": "^1.10.1"
"rollup": "^2.18.1"
},

@@ -48,0 +48,0 @@ "keywords": [

# is-plain-object [![NPM version](https://img.shields.io/npm/v/is-plain-object.svg?style=flat)](https://www.npmjs.com/package/is-plain-object) [![NPM monthly downloads](https://img.shields.io/npm/dm/is-plain-object.svg?style=flat)](https://npmjs.org/package/is-plain-object) [![NPM total downloads](https://img.shields.io/npm/dt/is-plain-object.svg?style=flat)](https://npmjs.org/package/is-plain-object) [![Linux Build Status](https://img.shields.io/travis/jonschlinkert/is-plain-object.svg?style=flat&label=Travis)](https://travis-ci.org/jonschlinkert/is-plain-object)
> Returns true if an object was created by the `Object` constructor.
> Returns true if an object was created by the `Object` constructor, or Object.create(null).

@@ -119,2 +119,2 @@ Please consider following this project's author, [Jon Schlinkert](https://github.com/jonschlinkert), and consider starring the project to show your :heart: and support.

_This file was generated by [verb-generate-readme](https://github.com/verbose/verb-generate-readme), v0.8.0, on April 28, 2019._
_This file was generated by [verb-generate-readme](https://github.com/verbose/verb-generate-readme), v0.8.0, on April 28, 2019._
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc