@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.cjs.js CHANGED
@@ -5951,6 +5951,9 @@ class Utils {
5951
5951
  if (typeof checkObj === "function") {
5952
5952
  obj = checkObj();
5953
5953
  }
5954
+ if (typeof obj !== "object") {
5955
+ return;
5956
+ }
5954
5957
  if ((typeof checkPropertyName === "function" && checkPropertyName(obj)) ||
5955
5958
  Reflect.has(obj, checkPropertyName)) {
5956
5959
  isResolve = true;