1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 20:37:35 +00:00

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
parent f70bed7339
commit 527efc1d52

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