cheminfo-js / spectra-data

Library to deal with spectra (IR, UV, ...), 1D NMR as well as 2D NMR
https://cheminfo-js.github.io/spectra-data
MIT License
4 stars 0 forks source link

Create a class for Range (and Signal ?) #30

Open lpatiny opened 7 years ago

lpatiny commented 7 years ago
toPeakList () {
    var peaks = [];
    this.forEach(range => {
        peaks.push(...range.toPeakList());
    });
    return peaks;
};

https://github.com/cheminfo-js/spectra-data/blob/f8100bd69498719fe0bd46267c1cb369c9e49611/src/range/Ranges.js#L98

toPeakList could also be renamed to getPeaks