Open lpatiny opened 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
https://github.com/cheminfo-js/spectra-data/blob/f8100bd69498719fe0bd46267c1cb369c9e49611/src/range/Ranges.js#L98
toPeakList could also be renamed to getPeaks