Comparing version 1.6.1 to 1.6.2
@@ -254,3 +254,3 @@ "use strict"; | ||
SMath.median = function (data) { | ||
data.sort(); | ||
data.sort(function (a, b) { return a - b; }); | ||
if (data.length % 2) { | ||
@@ -257,0 +257,0 @@ return data[(data.length - 1) / 2]; |
{ | ||
"name": "smath", | ||
"version": "1.6.1", | ||
"version": "1.6.2", | ||
"description": "Small math function library", | ||
@@ -31,2 +31,7 @@ "homepage": "https://npm.nicfv.com/smath", | ||
"mean", | ||
"calculus", | ||
"statistics", | ||
"numeric", | ||
"numerical", | ||
"analysis", | ||
"interpolate", | ||
@@ -51,7 +56,7 @@ "interpolation", | ||
"devDependencies": { | ||
"@types/node": "20.11.30", | ||
"@types/node": "20.12.4", | ||
"exray": "1.0.2", | ||
"typedoc": "0.25.12", | ||
"typescript": "5.4.3" | ||
"typescript": "5.4.4" | ||
} | ||
} |
@@ -5,3 +5,3 @@ [Home](https://npm.nicfv.com/) | [Docs](https://npm.nicfv.com/smath/) | [GitHub](https://github.com/nicfv/npm/tree/main/smath/) | [npm](https://www.npmjs.com/package/smath) | [Changelog](https://github.com/nicfv/npm/blob/main/smath//CHANGELOG.md) | [YouTube](https://www.youtube.com/@nciv) | Small math function library | ||
![NPM Version](https://img.shields.io/npm/v/smath) | ||
![Relative date](https://img.shields.io/date/1711574450) | ||
![Relative date](https://img.shields.io/date/1712342048) | ||
![GitHub watchers](https://img.shields.io/github/watchers/nicfv/npm) | ||
@@ -16,3 +16,3 @@ ![GitHub forks](https://img.shields.io/github/forks/nicfv/npm) | ||
```shell | ||
npm i smath@1.6.1 | ||
npm i smath@1.6.2 | ||
``` | ||
@@ -19,0 +19,0 @@ |
32855