is-plain-object
Advanced tools
Comparing version 3.0.1 to 4.0.0
@@ -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 |
{ | ||
"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._ |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
9586
77
120