@sindresorhus/is
Advanced tools
Comparing version 5.1.0 to 5.2.0
@@ -205,3 +205,3 @@ const typedArrayTypeNames = [ | ||
// From: https://github.com/sindresorhus/is-plain-obj/blob/main/index.js | ||
if (toString.call(value) !== '[object Object]') { | ||
if (typeof value !== 'object' || value === null) { | ||
return false; | ||
@@ -211,3 +211,3 @@ } | ||
const prototype = Object.getPrototypeOf(value); | ||
return prototype === null || prototype === Object.getPrototypeOf({}); | ||
return (prototype === null || prototype === Object.prototype || Object.getPrototypeOf(prototype) === null) && !(Symbol.toStringTag in value) && !(Symbol.iterator in value); | ||
}; | ||
@@ -214,0 +214,0 @@ is.typedArray = (value) => isTypedArrayName(getObjectType(value)); |
{ | ||
"name": "@sindresorhus/is", | ||
"version": "5.1.0", | ||
"version": "5.2.0", | ||
"description": "Type check values", | ||
@@ -5,0 +5,0 @@ "license": "MIT", |
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
58889