just-variance
Advanced tools
Comparing version 1.0.0 to 1.1.0
@@ -15,3 +15,3 @@ module.exports = variance; | ||
var n = arr[i]; | ||
if (typeof n != 'number' || !n) { | ||
if (!Number.isFinite(n)) { | ||
throw new Error('all values passed to `variance` must be numeric'); | ||
@@ -18,0 +18,0 @@ } |
{ | ||
"name": "just-variance", | ||
"version": "1.0.0", | ||
"version": "1.1.0", | ||
"description": "return the standard deviation of an array or numeric argument list", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
3134
6
43