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

@antv/util

Package Overview
Dependencies
Maintainers
35
Versions
70
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@antv/util - npm Package Compare versions

Comparing version 2.0.12 to 2.0.13

11

esm/max.js

@@ -1,2 +0,1 @@

import each from './each';
import isArray from './is-array';

@@ -24,10 +23,6 @@ /**

}
var max = arr[0];
each(arr, function (val) {
if (val > max) {
max = val;
}
});
return max;
return arr.reduce(function (prev, curr) {
return Math.max(prev, curr);
}, arr[0]);
});
//# sourceMappingURL=max.js.map

@@ -1,2 +0,1 @@

import each from './each';
import isArray from './is-array';

@@ -24,10 +23,6 @@ /**

}
var min = arr[0];
each(arr, function (val) {
if (val < min) {
min = val;
}
});
return min;
return arr.reduce(function (prev, curr) {
return Math.min(prev, curr);
}, arr[0]);
});
//# sourceMappingURL=min.js.map
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
var each_1 = require("./each");
var is_array_1 = require("./is-array");

@@ -26,10 +25,6 @@ /**

}
var max = arr[0];
each_1.default(arr, function (val) {
if (val > max) {
max = val;
}
});
return max;
return arr.reduce(function (prev, curr) {
return Math.max(prev, curr);
}, arr[0]);
});
//# sourceMappingURL=max.js.map
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
var each_1 = require("./each");
var is_array_1 = require("./is-array");

@@ -26,10 +25,6 @@ /**

}
var min = arr[0];
each_1.default(arr, function (val) {
if (val < min) {
min = val;
}
});
return min;
return arr.reduce(function (prev, curr) {
return Math.min(prev, curr);
}, arr[0]);
});
//# sourceMappingURL=min.js.map
{
"name": "@antv/util",
"version": "2.0.12",
"version": "2.0.13",
"description": "A common util collection for antv projects",

@@ -5,0 +5,0 @@ "main": "lib/index.js",

@@ -25,9 +25,5 @@ import each from './each';

}
let max = arr[0];
each(arr, val => {
if (val > max) {
max = val;
}
});
return max;
return arr.reduce((prev, curr) => {
return Math.max(prev, curr)
}, arr[0]);
};

@@ -25,9 +25,5 @@ import each from './each';

}
let min = arr[0];
each(arr, (val) => {
if (val < min) {
min = val;
}
});
return min;
return arr.reduce((prev, curr) => {
return Math.min(prev, curr)
}, arr[0]);
};

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

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