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

ml-array-xy-max-y

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 0.0.1-security to 0.2.5

{
"name": "ml-array-xy-max-y",
"version": "0.0.1-security",
"description": "security holding package",
"repository": "npm/security-holder"
"version": "0.2.5",
"description": "Find the maximum ordinate value in a range of abscissas of a {x:[], y:[]}",
"main": "lib/index.js",
"module": "src/index.js",
"files": [
"lib",
"src"
],
"repository": {
"type": "git",
"url": "git+https://github.com/mljs/array-xy.git"
},
"keywords": [],
"author": "Miguel Asencio",
"license": "MIT",
"bugs": {
"url": "https://github.com/mljs/array-xy/issues"
},
"homepage": "https://github.com/mljs/array-xy/tree/master/packages/array-xy-max-y#readme",
"dependencies": {
"binary-search": "^1.3.2",
"num-sort": "^1.0.0"
},
"gitHead": "34f9f1559ca636dde9f676ddac73b4aee0dcbefa"
}

@@ -1,9 +0,40 @@

# Security holding package
# array-xy-max-y
This package name is not currently in use, but was formerly occupied
by another package. To avoid malicious use, npm is hanging on to the
package name, but loosely, and we'll probably give it to you if you
want it.
[![NPM version][npm-image]][npm-url]
[![npm download][download-image]][download-url]
You may adopt this package by contacting support@npmjs.com and
requesting the name.
Find the maximum ordinate value in a range of abscissas.
## Installation
`$ npm install --save ml-array-xy-max-y`
## Usage
```js
import maxY from 'ml-array-xy-max-y';
const points = {
x: [1, 2, 3, 4, 5, 6],
y: [10, 2, 8, 4, 5, 20]
};
const options = {
from: { index: 1 },
to: { value: 5 }
};
const result = maxY(points, options);
/* result -> {
index: 2,
value: 8
} */
```
## License
[MIT](./LICENSE)
[npm-image]: https://img.shields.io/npm/v/array-xy-max-y.svg?style=flat-square
[npm-url]: https://www.npmjs.com/package/array-xy-max-y
[download-image]: https://img.shields.io/npm/dm/array-xy-max-y.svg?style=flat-square
[download-url]: https://www.npmjs.com/package/array-xy-max-y