mirror of
https://github.com/TheAlgorithms/JavaScript.git
synced 2025-07-06 09:28:26 +08:00
Fixed minor grammar typo in AverageMedian function
This commit is contained in:
@ -20,7 +20,7 @@
|
||||
*/
|
||||
|
||||
function averageMedian(numbers) {
|
||||
let median = 0; const numLength = numbers.length
|
||||
let median = 0, numLength = numbers.length
|
||||
numbers = numbers.sort(sortNumbers)
|
||||
|
||||
if (numLength % 2 === 0) {
|
||||
|
Reference in New Issue
Block a user