@whitesev/utils 1.4.0 → 1.4.1

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@whitesev/utils",
3
- "version": "1.4.0",
3
+ "version": "1.4.1",
4
4
  "description": "一个常用的工具库",
5
5
  "main": "dist/index.cjs.js",
6
6
  "module": "dist/node/index.esm.js",
package/src/Utils.ts CHANGED
@@ -4727,6 +4727,9 @@ class Utils {
4727
4727
  if (typeof obj !== "object") {
4728
4728
  return;
4729
4729
  }
4730
+ if (obj == null) {
4731
+ return;
4732
+ }
4730
4733
  if (
4731
4734
  (typeof checkPropertyName === "function" && checkPropertyName(obj)) ||
4732
4735
  Reflect.has(obj, checkPropertyName as string)