@whitesev/utils 2.9.7 → 2.9.8

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.umd.js CHANGED
@@ -450,6 +450,9 @@
450
450
  }
451
451
  toJSON(data, errorCallBack) {
452
452
  let result = {};
453
+ if (data == null) {
454
+ return result;
455
+ }
453
456
  if (typeof data === "object") {
454
457
  return data;
455
458
  }
@@ -5502,7 +5505,7 @@
5502
5505
  }
5503
5506
  const domUtils = new DOMUtils();
5504
5507
 
5505
- const version = "2.9.7";
5508
+ const version = "2.9.8";
5506
5509
 
5507
5510
  class Utils {
5508
5511
  windowApi;
@@ -8040,7 +8043,7 @@
8040
8043
  }
8041
8044
  }
8042
8045
  /**
8043
- * 深度获取对象属性
8046
+ * 深度获取对象的某个属性
8044
8047
  * @param target 待获取的对象
8045
8048
  * @param handler 获取属性的回调
8046
8049
  */