We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5edb209 commit 9df7c23Copy full SHA for 9df7c23
Sprint-1/fix/median.js
@@ -10,9 +10,7 @@ function calculateMedian(list) {
10
return null;
11
}
12
13
- const filteredNumericArr = list.filter(
14
- (el) => typeof el === "number" && Number.isFinite(el)
15
- );
+ const filteredNumericArr = list.filter((el) => Number.isFinite(el));
16
17
if (filteredNumericArr.length === 0) {
18
0 commit comments