dtable-utils
Advanced tools
Comparing version 4.2.5 to 4.2.6
@@ -58,3 +58,5 @@ import { getRowsByIds } from '../table/row.js'; | ||
if (validNumbersCount > 0) { | ||
medianArr.sort(); | ||
medianArr.sort(function (numLeft, numRight) { | ||
return numLeft - numRight; | ||
}); // sort number with asc | ||
if (medianArr.length % 2 === 0) { | ||
@@ -61,0 +63,0 @@ median = (medianArr[medianArr.length / 2 - 1] + medianArr[medianArr.length / 2]) / 2; |
@@ -62,3 +62,5 @@ 'use strict'; | ||
if (validNumbersCount > 0) { | ||
medianArr.sort(); | ||
medianArr.sort(function (numLeft, numRight) { | ||
return numLeft - numRight; | ||
}); // sort number with asc | ||
if (medianArr.length % 2 === 0) { | ||
@@ -65,0 +67,0 @@ median = (medianArr[medianArr.length / 2 - 1] + medianArr[medianArr.length / 2]) / 2; |
{ | ||
"name": "dtable-utils", | ||
"version": "4.2.5", | ||
"version": "4.2.6", | ||
"description": "dtable common utils", | ||
@@ -5,0 +5,0 @@ "main": "./lib/index.js", |
Sorry, the diff of this file is too big to display
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
662879
14779