Open lpatiny opened 4 years ago
In javascript when you want to speak about the minimal (or max number) you can define the variable as Number.NEGATIVE_INFINITY (or Number.POSITIVE_INFINITY).
https://github.com/cheminfo/multiplet-analysis/blob/ee8aa8c9f9554a58a82013f967f8790b6015c86d/src/index.js#L274
We also did a lot of small libraries like:
That work with array1D or object (x:[], y:[]}. One of the do exactly what you are doing here: https://github.com/mljs/array-xy/tree/master/packages/ml-array-xy-max-y
If you wanted to reuse it: npm i ml-array-xy-max-y
npm i ml-array-xy-max-y
and you may check the example: https://github.com/mljs/array-xy/tree/master/packages/ml-array-xy-max-y. In your case no option need to be provided.
OK, I will try...
In javascript when you want to speak about the minimal (or max number) you can define the variable as Number.NEGATIVE_INFINITY (or Number.POSITIVE_INFINITY).
https://github.com/cheminfo/multiplet-analysis/blob/ee8aa8c9f9554a58a82013f967f8790b6015c86d/src/index.js#L274
We also did a lot of small libraries like:
That work with array1D or object (x:[], y:[]}. One of the do exactly what you are doing here: https://github.com/mljs/array-xy/tree/master/packages/ml-array-xy-max-y
If you wanted to reuse it:
npm i ml-array-xy-max-y
and you may check the example: https://github.com/mljs/array-xy/tree/master/packages/ml-array-xy-max-y. In your case no option need to be provided.