cheminfo / cheminfo/multiplet-analysis

Little tricks

Open
#21 1 comment 0 reactions 1 assignee Claimed by @djeanner View on GitHub
Dominant language
TypeScript
Stars
2
Forks
1
PR merge metrics
No merged PRs in 30d

Description

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:
- https://github.com/mljs/array
- https://github.com/mljs/array-xy

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.

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.