@whitesev/utils 2.9.8 → 2.9.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.
@@ -4319,13 +4319,25 @@ var Utils = (function () {
4319
4319
  * 获取字典所有的键
4320
4320
  */
4321
4321
  keys() {
4322
- return Array.from(this.items.keys());
4322
+ const keys = this.items.keys();
4323
+ if (typeof keys.toArray === "function") {
4324
+ return keys.toArray();
4325
+ }
4326
+ else {
4327
+ return [...keys];
4328
+ }
4323
4329
  }
4324
4330
  /**
4325
4331
  * 返回字典中的所有值
4326
4332
  */
4327
4333
  values() {
4328
- return Array.from(this.items.values());
4334
+ const values = this.items.values();
4335
+ if (typeof values.toArray === "function") {
4336
+ return values.toArray();
4337
+ }
4338
+ else {
4339
+ return [...values];
4340
+ }
4329
4341
  }
4330
4342
  /**
4331
4343
  * 清空字典
@@ -5502,7 +5514,7 @@ var Utils = (function () {
5502
5514
  }
5503
5515
  const domUtils = new DOMUtils();
5504
5516
 
5505
- const version = "2.9.8";
5517
+ const version = "2.9.9";
5506
5518
 
5507
5519
  class Utils {
5508
5520
  windowApi;