From 527efc1d52230bfec0f5b0bdf7a16ba223de3e2f Mon Sep 17 00:00:00 2001 From: Linus Groh Date: Sat, 28 Aug 2021 12:05:33 +0100 Subject: [PATCH] Spreadsheet: Replace loose with strict equality operators in runtime.js --- Base/res/js/Spreadsheet/runtime.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Base/res/js/Spreadsheet/runtime.js b/Base/res/js/Spreadsheet/runtime.js index 7c98706f6b..339675109b 100644 --- a/Base/res/js/Spreadsheet/runtime.js +++ b/Base/res/js/Spreadsheet/runtime.js @@ -206,10 +206,10 @@ function averageIf(condition, cells) { function median(cells) { const values = numericResolve(cells); - if (values.length == 0) return 0; + if (values.length === 0) return 0; function qselect(arr, idx) { - if (arr.length == 1) return arr[0]; + if (arr.length === 1) return arr[0]; const pivot = arr[0]; const ls = arr.filter(x => x < pivot);