@whitesev/utils 2.7.8 → 2.8.0
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 -3
- package/dist/index.amd.js.map +1 -1
- package/dist/index.cjs.js +3 -3
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.esm.js +3 -3
- package/dist/index.esm.js.map +1 -1
- package/dist/index.iife.js +3 -3
- package/dist/index.iife.js.map +1 -1
- package/dist/index.system.js +3 -3
- package/dist/index.system.js.map +1 -1
- package/dist/index.umd.js +3 -3
- package/dist/index.umd.js.map +1 -1
- package/package.json +1 -1
- package/src/Dictionary.ts +2 -2
- package/src/Utils.ts +1 -1
package/package.json
CHANGED
package/src/Dictionary.ts
CHANGED
|
@@ -79,13 +79,13 @@ export class UtilsDictionary<K extends unknown, V extends any> {
|
|
|
79
79
|
* 获取字典所有的键
|
|
80
80
|
*/
|
|
81
81
|
keys(): K[] {
|
|
82
|
-
return this.items.keys()
|
|
82
|
+
return Array.from(this.items.keys());
|
|
83
83
|
}
|
|
84
84
|
/**
|
|
85
85
|
* 返回字典中的所有值
|
|
86
86
|
*/
|
|
87
87
|
values(): V[] {
|
|
88
|
-
return this.items.values()
|
|
88
|
+
return Array.from(this.items.values());
|
|
89
89
|
}
|
|
90
90
|
/**
|
|
91
91
|
* 清空字典
|