math-helper-functions
Advanced tools
Comparing version 1.7.3 to 1.7.4
@@ -232,8 +232,8 @@ const {sum, max, min, mean, median, extent, histogram} = require('d3-array'); | ||
const simpleArray = [...MathFunctions._getSimpleArray(array, property)]; | ||
const sorted = simpleArray.sort((a, b) => a - b); | ||
simpleArray.sort((a, b) => a - b); | ||
return [ | ||
sorted[Math.round(len / 4) - 1], | ||
sorted[Math.round(len / 2) - 1], | ||
sorted[Math.round((len * 3) / 4) - 1], | ||
simpleArray[Math.round(len / 4) - 1], | ||
simpleArray[Math.round(len / 2) - 1], | ||
simpleArray[Math.round((len * 3) / 4) - 1], | ||
]; | ||
@@ -240,0 +240,0 @@ } |
{ | ||
"name": "math-helper-functions", | ||
"version": "1.7.3", | ||
"version": "1.7.4", | ||
"description": "Helper with misc. math functions such as sums, averages, max, min, etc", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
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