Spreadsheet: Replace loose with strict equality operators in runtime.js

This commit is contained in:
Linus Groh 2021-08-28 12:05:33 +01:00
commit 527efc1d52
Notes: sideshowbarker 2024-07-18 05:09:30 +09:00

View file

@ -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);