Package Exports
- ml-array-xy-max-y
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (ml-array-xy-max-y) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
array-xy-max-y
Find the maximum ordinate value in a range of abscissas.
Installation
$ npm install --save ml-array-xy-max-y
Usage
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
} */