object-lib
Advanced tools
Comparing version 4.0.1 to 4.0.2
@@ -5,3 +5,10 @@ export default (ref) => { | ||
} | ||
return Array.isArray(ref) ? [] : {}; | ||
const result = Array.isArray(ref) ? [] : {}; | ||
const symbols = Object.getOwnPropertySymbols(ref); | ||
for (let i = 0; i < symbols.length; i += 1) { | ||
const symbol = symbols[i]; | ||
const descriptor = Object.getOwnPropertyDescriptor(ref, symbol); | ||
Object.defineProperty(result, symbol, descriptor); | ||
} | ||
return result; | ||
}; |
{ | ||
"name": "object-lib", | ||
"type": "module", | ||
"version": "4.0.1", | ||
"version": "4.0.2", | ||
"main": "lib/index.js", | ||
@@ -6,0 +6,0 @@ "repository": { |
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
13090
204