Skip to content

Commit

Permalink
chore: use old javascript syntax for compatiblility
Browse files Browse the repository at this point in the history
  • Loading branch information
lpatiny committed Feb 23, 2021
1 parent a96d786 commit 5a78fe3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/xyArray/xyArrayAlign.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ export function xyArrayAlign(spectra, options = {}) {

// at first we will calculate the X values (simple mean)
let possibleXs = Float64Array.from(
spectra.map((spectrum) => spectrum.x).flat(1),
[].concat(...spectra.map((spectrum) => spectrum.x)),
).sort();

if (possibleXs.length < 1) {
Expand Down

0 comments on commit 5a78fe3

Please sign in to comment.