@whitesev/utils 1.3.8 → 1.3.9
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.amd.js +3 -0
- package/dist/index.amd.js.map +1 -1
- package/dist/index.cjs.js +3 -0
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.esm.js +3 -0
- package/dist/index.esm.js.map +1 -1
- package/dist/index.iife.js +3 -0
- package/dist/index.iife.js.map +1 -1
- package/dist/index.system.js +3 -0
- package/dist/index.system.js.map +1 -1
- package/dist/index.umd.js +3 -0
- package/dist/index.umd.js.map +1 -1
- package/package.json +1 -1
- package/src/Utils.ts +3 -0
package/package.json
CHANGED
package/src/Utils.ts
CHANGED
|
@@ -4724,6 +4724,9 @@ class Utils {
|
|
|
4724
4724
|
if (typeof checkObj === "function") {
|
|
4725
4725
|
obj = checkObj();
|
|
4726
4726
|
}
|
|
4727
|
+
if (typeof obj !== "object") {
|
|
4728
|
+
return;
|
|
4729
|
+
}
|
|
4727
4730
|
if (
|
|
4728
4731
|
(typeof checkPropertyName === "function" && checkPropertyName(obj)) ||
|
|
4729
4732
|
Reflect.has(obj, checkPropertyName as string)
|