Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

ml-array-max

Package Overview
Dependencies
Maintainers
4
Versions
11
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

ml-array-max - npm Package Compare versions

Comparing version 1.2.3 to 1.2.4

6

lib-es6/index.js

@@ -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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc