ml-array-max
Advanced tools
Comparing version 1.2.3 to 1.2.4
@@ -1,2 +0,2 @@ | ||
import isArray from 'is-any-array'; | ||
import { isAnyArray } from 'is-any-array'; | ||
@@ -6,3 +6,3 @@ function max(input) { | ||
if (!isArray(input)) { | ||
if (!isAnyArray(input)) { | ||
throw new TypeError('input must be an array'); | ||
@@ -37,2 +37,2 @@ } | ||
export default max; | ||
export { max as default }; |
'use strict'; | ||
var isArray = require('is-any-array'); | ||
var isAnyArray = require('is-any-array'); | ||
function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; } | ||
var isArray__default = /*#__PURE__*/_interopDefaultLegacy(isArray); | ||
function max(input, options = {}) { | ||
if (!isArray__default['default'](input)) { | ||
if (!isAnyArray.isAnyArray(input)) { | ||
throw new TypeError('input must be an array'); | ||
@@ -12,0 +8,0 @@ } |
{ | ||
"name": "ml-array-max", | ||
"version": "1.2.3", | ||
"version": "1.2.4", | ||
"description": "Get the maximum value in an array", | ||
@@ -26,5 +26,5 @@ "main": "lib/index.js", | ||
"dependencies": { | ||
"is-any-array": "^1.0.0" | ||
"is-any-array": "^2.0.0" | ||
}, | ||
"gitHead": "d06a16075e582be7b7c553cd1aecbe1d03c64b7a" | ||
"gitHead": "787f12ca8c7c39063a349e2da17152742bea67b1" | ||
} |
@@ -0,0 +0,0 @@ # array-max |
@@ -0,0 +0,0 @@ import max from '..'; |
@@ -1,5 +0,5 @@ | ||
import isArray from 'is-any-array'; | ||
import { isAnyArray } from 'is-any-array'; | ||
export default function max(input, options = {}) { | ||
if (!isArray(input)) { | ||
if (!isAnyArray(input)) { | ||
throw new TypeError('input must be an array'); | ||
@@ -6,0 +6,0 @@ } |
@@ -0,0 +0,0 @@ declare namespace mlArrayMax { |
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
7897
8
157
+ Addedis-any-array@2.0.1(transitive)
- Removedis-any-array@1.0.1(transitive)
Updatedis-any-array@^2.0.0