New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

ml-array-variance

Package Overview
Dependencies
Maintainers
5
Versions
11
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

ml-array-variance - npm Package Compare versions

Comparing version 1.1.7 to 1.1.8

4

lib-es6/index.js

@@ -1,2 +0,2 @@

import isArray from 'is-any-array';
import { isAnyArray } from 'is-any-array';
import arrayMean from 'ml-array-mean';

@@ -7,3 +7,3 @@

if (!isArray(values)) {
if (!isAnyArray(values)) {
throw new TypeError('input must be an array');

@@ -10,0 +10,0 @@ }

'use strict';
var isArray = require('is-any-array');
var isAnyArray = require('is-any-array');
var arrayMean = require('ml-array-mean');

@@ -8,7 +8,6 @@

var isArray__default = /*#__PURE__*/_interopDefaultLegacy(isArray);
var arrayMean__default = /*#__PURE__*/_interopDefaultLegacy(arrayMean);
function variance(values, options = {}) {
if (!isArray__default['default'](values)) {
if (!isAnyArray.isAnyArray(values)) {
throw new TypeError('input must be an array');

@@ -15,0 +14,0 @@ }

{
"name": "ml-array-variance",
"version": "1.1.7",
"version": "1.1.8",
"description": "Get the variance in an array",

@@ -26,6 +26,6 @@ "main": "lib/index.js",

"dependencies": {
"is-any-array": "^1.0.0",
"ml-array-mean": "^1.1.5"
"is-any-array": "^2.0.0",
"ml-array-mean": "^1.1.6"
},
"gitHead": "207c5e6e1486b2d22fdfec7b7a3b6867fe50a69e"
"gitHead": "787f12ca8c7c39063a349e2da17152742bea67b1"
}

@@ -1,6 +0,6 @@

import isArray from 'is-any-array';
import { isAnyArray } from 'is-any-array';
import arrayMean from 'ml-array-mean';
export default function variance(values, options = {}) {
if (!isArray(values)) {
if (!isAnyArray(values)) {
throw new TypeError('input must be an array');

@@ -7,0 +7,0 @@ }

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