ml-array-normed
Advanced tools
Comparing version 1.0.3 to 1.1.0
import max from 'ml-array-max'; | ||
import sum from 'ml-array-sum'; | ||
import isArray from 'is-any-array'; | ||
@@ -17,3 +18,3 @@ /** | ||
if (!Array.isArray(input)) { | ||
if (!isArray(input)) { | ||
throw new Error('input must be an array'); | ||
@@ -20,0 +21,0 @@ } |
@@ -7,2 +7,3 @@ 'use strict'; | ||
var sum = _interopDefault(require('ml-array-sum')); | ||
var isArray = _interopDefault(require('is-any-array')); | ||
@@ -18,3 +19,3 @@ /** | ||
const { algorithm = 'absolute' } = options; | ||
if (!Array.isArray(input)) { | ||
if (!isArray(input)) { | ||
throw new Error('input must be an array'); | ||
@@ -21,0 +22,0 @@ } |
{ | ||
"name": "ml-array-normed", | ||
"version": "1.0.3", | ||
"version": "1.1.0", | ||
"description": "Get a normed array in an array", | ||
@@ -24,6 +24,6 @@ "main": "lib/index.js", | ||
"dependencies": { | ||
"is-any-array": "^0.1.0", | ||
"ml-array-max": "^1.1.2", | ||
"ml-array-sum": "^1.1.2" | ||
}, | ||
"gitHead": "6a3b7e1b0fab7f3996b9af3a75d6234a68c9e4d0" | ||
} | ||
} |
import max from 'ml-array-max'; | ||
import sum from 'ml-array-sum'; | ||
import isArray from 'is-any-array'; | ||
/** | ||
@@ -13,3 +13,3 @@ * Computes the norm of the given values | ||
const { algorithm = 'absolute' } = options; | ||
if (!Array.isArray(input)) { | ||
if (!isArray(input)) { | ||
throw new Error('input must be an array'); | ||
@@ -16,0 +16,0 @@ } |
10523
9
182
3
+ Addedis-any-array@^0.1.0
+ Addedis-any-array@0.1.1(transitive)