Add semicolon for tdd exports
This commit is contained in:
@ -3,4 +3,4 @@ const mid = Math.floor(arr.length / 2),
|
||||
nums = [...arr].sort((a, b) => a - b);
|
||||
return arr.length % 2 !== 0 ? nums[mid] : (nums[mid - 1] + nums[mid]) / 2;
|
||||
};
|
||||
module.exports = median
|
||||
module.exports = median;
|
||||
Reference in New Issue
Block a user