daily update

This commit is contained in:
Vick Scarlet
2021-11-24 23:10:04 +08:00
parent f8dd720d4d
commit 52d6a0ca8f
17 changed files with 251 additions and 964 deletions
+6 -1
View File
@@ -62,4 +62,9 @@ function getConvertedMap(map, fn) {
return newMap;
}
export { clone, max, min, sum, average, weightRandom, listRandom, getListValuesMap, mapConvert, getConvertedMap };
function mapSet(target, source) {
for(const key in source)
target[key] = source[key];
}
export { clone, max, min, sum, average, weightRandom, listRandom, getListValuesMap, mapConvert, getConvertedMap, mapSet };