Comparing version 1.0.2 to 1.0.3
export default function inspectSymbol(value) { | ||
if ('description' in Symbol.prototype) { | ||
return `Symbol(${value.description})` | ||
return value.description ? `Symbol(${value.description})` : "'Symbol()'" | ||
} | ||
return value.toString() | ||
} |
@@ -880,3 +880,3 @@ (function (global, factory) { | ||
if ('description' in Symbol.prototype) { | ||
return "Symbol(".concat(value.description, ")"); | ||
return value.description ? "Symbol(".concat(value.description, ")") : "'Symbol()'"; | ||
} | ||
@@ -883,0 +883,0 @@ |
{ | ||
"name": "loupe", | ||
"version": "1.0.2", | ||
"version": "1.0.3", | ||
"description": "Inspect utility for Node.js and browsers", | ||
@@ -5,0 +5,0 @@ "homepage": "https://github.com/chaijs/loupe", |
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
68832