You're Invited:Meet the Socket Team at BlackHat and DEF CON in Las Vegas, Aug 4-6.RSVP
Socket
Book a DemoInstallSign in
Socket

ml-array-xy-max-y

Package Overview
Dependencies
Maintainers
5
Versions
7
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

ml-array-xy-max-y - npm Package Compare versions

Comparing version

to
1.0.0

16

CHANGELOG.md

@@ -6,2 +6,18 @@ # Change Log

# [1.0.0](https://github.com/mljs/array-xy/compare/ml-array-xy-max-y@0.2.7...ml-array-xy-max-y@1.0.0) (2019-06-29)
### chore
* update dependencies and remove support for Node.js 6 ([dc23f9c](https://github.com/mljs/array-xy/commit/dc23f9c))
### BREAKING CHANGES
* Node.js 6 is no longer supported
## [0.2.7](https://github.com/mljs/array-xy/compare/ml-array-xy-max-y@0.2.6...ml-array-xy-max-y@0.2.7) (2019-05-03)

@@ -8,0 +24,0 @@

4

lib/index.js

@@ -58,5 +58,5 @@ 'use strict';

if (reverse) {
index = binarySearch(x, value, numSort.desc);
index = binarySearch(x, value, numSort.descending);
} else {
index = binarySearch(x, value, numSort.asc);
index = binarySearch(x, value, numSort.ascending);
}

@@ -63,0 +63,0 @@

{
"name": "ml-array-xy-max-y",
"version": "0.2.7",
"version": "1.0.0",
"description": "Find the maximum ordinate value in a range of abscissas of a {x:[], y:[]}",

@@ -23,6 +23,6 @@ "main": "lib/index.js",

"dependencies": {
"binary-search": "^1.3.2",
"num-sort": "^1.0.0"
"binary-search": "^1.3.5",
"num-sort": "^2.0.0"
},
"gitHead": "1321c2b63d8d201d6242bdcbfdb7b7bdfc0e719a"
}
import binarySearch from 'binary-search';
import { asc, desc } from 'num-sort';
import { ascending, descending } from 'num-sort';

@@ -54,5 +54,5 @@ /**

if (reverse) {
index = binarySearch(x, value, desc);
index = binarySearch(x, value, descending);
} else {
index = binarySearch(x, value, asc);
index = binarySearch(x, value, ascending);
}

@@ -59,0 +59,0 @@