From 78f73ff105a04151fb47f576698ec3cdb6ac4003 Mon Sep 17 00:00:00 2001 From: roberto Date: Sat, 27 Apr 2024 20:24:40 +0200 Subject: [PATCH] fix NaN finding procedure --- thresholdmann.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/thresholdmann.js b/thresholdmann.js index 3f432ba..1346180 100644 --- a/thresholdmann.js +++ b/thresholdmann.js @@ -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) => {