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

ml-array-median

Package Overview
Dependencies
Maintainers
5
Versions
10
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

ml-array-median - npm Package Compare versions

Comparing version 1.1.5 to 1.1.6

6

lib-es6/index.js

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

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