ml-array-max
Advanced tools
Comparing version
@@ -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
7897
-23.14%8
-11.11%157
-1.26%+ Added
- Removed
Updated