ml-array-variance
Advanced tools
Comparing version 1.1.7 to 1.1.8
@@ -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 @@ } |
5646
105
- Removedis-any-array@1.0.1(transitive)
Updatedis-any-array@^2.0.0
Updatedml-array-mean@^1.1.6