karl-common-util
Advanced tools
Comparing version 1.5.5 to 1.5.6
{ | ||
"name": "karl-common-util", | ||
"version": "1.5.5", | ||
"version": "1.5.6", | ||
"description": "karl common lib for client and server", | ||
@@ -5,0 +5,0 @@ "main": "dist/index.js", |
@@ -43,3 +43,3 @@ if (!Array.prototype.aggregate) { | ||
case "sum": | ||
findEle[id] += (v === undefined || v === null || typeof(v) === "string") ? 0 : v | ||
findEle[id] += ((v === undefined || v === null || typeof(v) === "string") ? 0 : v) | ||
break | ||
@@ -50,3 +50,3 @@ case "count": | ||
case "avg": | ||
findEle[id] += (v === undefined || v === null || typeof(v) === "string") ? 0 : v | ||
findEle[id] += ((v === undefined || v === null || typeof(v) === "string") ? 0 : v) | ||
//自身的count,用于求平均数 | ||
@@ -53,0 +53,0 @@ findEle[id + "AggregateCount"] = findEle[id + "AggregateCount"] === undefined ? 1 : (findEle[id + "AggregateCount"] + 1) |
63700