mirror of
https://github.com/RGBCube/serenity
synced 2025-07-26 10:27:34 +00:00
Spreadsheet: Replace loose with strict equality operators in runtime.js
This commit is contained in:
parent
f70bed7339
commit
527efc1d52
1 changed files with 2 additions and 2 deletions
|
@ -206,10 +206,10 @@ function averageIf(condition, cells) {
|
||||||
function median(cells) {
|
function median(cells) {
|
||||||
const values = numericResolve(cells);
|
const values = numericResolve(cells);
|
||||||
|
|
||||||
if (values.length == 0) return 0;
|
if (values.length === 0) return 0;
|
||||||
|
|
||||||
function qselect(arr, idx) {
|
function qselect(arr, idx) {
|
||||||
if (arr.length == 1) return arr[0];
|
if (arr.length === 1) return arr[0];
|
||||||
|
|
||||||
const pivot = arr[0];
|
const pivot = arr[0];
|
||||||
const ls = arr.filter(x => x < pivot);
|
const ls = arr.filter(x => x < pivot);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue