Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

math-helper-functions

Package Overview
Dependencies
Maintainers
1
Versions
35
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

math-helper-functions - npm Package Compare versions

Comparing version 1.7.3 to 1.7.4

8

index.js

@@ -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",

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc