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

tscommons-core

Package Overview
Dependencies
Maintainers
1
Versions
99
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

tscommons-core - npm Package Compare versions

Comparing version 2.2.0 to 2.3.0

1

dist/helpers/commons-number.d.ts

@@ -15,2 +15,3 @@ export declare abstract class CommonsNumber {

static mean(values: number[]): number | undefined;
static standardDeviation(values: number[]): number | undefined;
static modes(values: number[]): number[];

@@ -17,0 +18,0 @@ static median(values: number[]): number | undefined;

@@ -93,2 +93,11 @@ "use strict";

}
static standardDeviation(values) {
if (values.length === 0)
return 0;
const mean = CommonsNumber.mean(values);
if (mean === undefined)
return undefined;
return CommonsNumber.mean(values
.map((value) => Math.pow((value - mean), 2)));
}
static modes(values) {

@@ -95,0 +104,0 @@ if (values.length === 0)

2

package.json
{
"name": "tscommons-core",
"version": "2.2.0",
"version": "2.3.0",
"description": "",

@@ -5,0 +5,0 @@ "scripts": {

Sorry, the diff of this file is not supported yet

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