Skip to content

Commit

Permalink
fix NaN finding procedure
Browse files Browse the repository at this point in the history
  • Loading branch information
r03ert0 committed Apr 27, 2024
1 parent 6bdaf8c commit 78f73ff
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion thresholdmann.js
Original file line number Diff line number Diff line change
Expand Up @@ -510,7 +510,7 @@ const getPoints = (points) => {
return (newRow.some(isNaN))?NaN:newRow;
});

return (newPoints.some(isNaN))?[]:newPoints;
return (newPoints.some((item) => !Array.isArray(item)))?[]:newPoints;
};

const getValues = (values) => {
Expand Down

0 comments on commit 78f73ff

Please sign in to comment.