ml-array-median
Advanced tools
Comparing version 1.1.5 to 1.1.6
@@ -1,6 +0,6 @@ | ||
import isArray from 'is-any-array'; | ||
import { isAnyArray } from 'is-any-array'; | ||
import quickSelectMedian from 'median-quickselect'; | ||
function median(input) { | ||
if (!isArray(input)) { | ||
if (!isAnyArray(input)) { | ||
throw new TypeError('input must be an array'); | ||
@@ -16,2 +16,2 @@ } | ||
export default median; | ||
export { median as default }; |
'use strict'; | ||
var isArray = require('is-any-array'); | ||
var isAnyArray = require('is-any-array'); | ||
var quickSelectMedian = require('median-quickselect'); | ||
@@ -8,7 +8,6 @@ | ||
var isArray__default = /*#__PURE__*/_interopDefaultLegacy(isArray); | ||
var quickSelectMedian__default = /*#__PURE__*/_interopDefaultLegacy(quickSelectMedian); | ||
function median(input) { | ||
if (!isArray__default['default'](input)) { | ||
if (!isAnyArray.isAnyArray(input)) { | ||
throw new TypeError('input must be an array'); | ||
@@ -15,0 +14,0 @@ } |
{ | ||
"name": "ml-array-median", | ||
"version": "1.1.5", | ||
"version": "1.1.6", | ||
"description": "Get the median value in an array", | ||
@@ -26,6 +26,6 @@ "main": "lib/index.js", | ||
"dependencies": { | ||
"is-any-array": "^1.0.0", | ||
"is-any-array": "^2.0.0", | ||
"median-quickselect": "^1.0.1" | ||
}, | ||
"gitHead": "d06a16075e582be7b7c553cd1aecbe1d03c64b7a" | ||
"gitHead": "787f12ca8c7c39063a349e2da17152742bea67b1" | ||
} |
@@ -0,0 +0,0 @@ # array-median |
@@ -0,0 +0,0 @@ import median from '..'; |
@@ -1,6 +0,6 @@ | ||
import isArray from 'is-any-array'; | ||
import { isAnyArray } from 'is-any-array'; | ||
import quickSelectMedian from 'median-quickselect'; | ||
export default function median(input) { | ||
if (!isArray(input)) { | ||
if (!isAnyArray(input)) { | ||
throw new TypeError('input must be an array'); | ||
@@ -7,0 +7,0 @@ } |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
5045
8
73
+ Addedis-any-array@2.0.1(transitive)
- Removedis-any-array@1.0.1(transitive)
Updatedis-any-array@^2.0.0